index.js
function chunkLength (chunk, encoding) {
  if (!chunk) {
    return 0
  }

  return !Buffer.isBuffer(chunk)
    ? Buffer.byteLength(chunk, encoding)
    : chunk.length
}
function chunkLength (chunk, encoding) {
  if (!chunk) {
    return 0
  }

  return !Buffer.isBuffer(chunk)
    ? Buffer.byteLength(chunk, encoding)
    : chunk.length
}
function chunkLength ( chunk , encoding ) { if ( ! chunk ) { return 0 } return ! Buffer . isBuffer ( chunk ) ? Buffer . byteLength ( chunk , encoding ) : chunk . length }
Get the length of a given chunk
Get the length of a given chunk