byte-length

v1.0.2
Get the real byte length of a string.
bytes content-length length string

build

tsc

coveralls

cat coverage/lcov.info | coveralls

format-all

find {src,test} -name '*.ts' | xargs prettier --write

mocha

mocha -r ts-node/register ./test/**/*.test.ts

precommit

lint-staged && npm test && npm run build

test

nyc --extension=.ts --include=src/**/*.ts --reporter=lcov --reporter=text-summary npm run mocha

test-ci

nyc --extension=.ts --include=src/**/*.ts --reporter=lcovonly --reporter=text npm run mocha
npm i byte-length

Metadata

  • MIT
  • Whatever
  • Dylan Piercey
  • released 10/17/2017

Downloads

Maintainers