{"versions":{"0.1.0":{"name":"byte-length","version":"0.1.0","description":"Get the real byte length of a string.","author":{"name":"Dylan Piercey","email":"pierceydylan@gmail.com"},"main":"index.js","license":"MIT","keywords":["bytes","string","length","content-length"],"repository":{"type":"git","url":"git+https://github.com/DylanPiercey/byte-length.git"},"bugs":{"url":"https://github.com/DylanPiercey/byte-length/issues"},"homepage":"https://github.com/DylanPiercey/byte-length#readme","_id":"byte-length@0.1.0","scripts":{},"_shasum":"70dfa14da772f5652ccc5a8e86af6bd4eb3e9b83","_from":".","_npmVersion":"2.14.3","_nodeVersion":"4.1.0","_npmUser":{"name":"anonymous","email":"pierceydylan@gmail.com"},"dist":{"shasum":"70dfa14da772f5652ccc5a8e86af6bd4eb3e9b83","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/byte-length/-/byte-length-0.1.0.tgz","integrity":"sha512-xZF4DevSoAh97rcg9ddWqvsrjiRZwBNSTbyRKg1020pcsbhR8ZS/3RWc2GAo59EVwgHG79eZ4Tg+BJ0aM93s7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGelC/kre6Bw2Q8s/2STHtsFwGdtOjB/hVb5+VHlhaKQIgZWlA8z4fGVe0exlaynPA1Hdrs7ctHHbLcb4bM0QGz3Y="}]},"maintainers":[{"name":"anonymous","email":"pierceydylan@gmail.com"}],"contributors":[]},"0.1.1":{"name":"byte-length","version":"0.1.1","description":"Get the real byte length of a string.","author":{"name":"Dylan Piercey","email":"pierceydylan@gmail.com"},"main":"index.js","license":"MIT","keywords":["bytes","string","length","content-length"],"repository":{"type":"git","url":"git+https://github.com/DylanPiercey/byte-length.git"},"gitHead":"bbda0006b962d3888e95d06be5544e994db74153","bugs":{"url":"https://github.com/DylanPiercey/byte-length/issues"},"homepage":"https://github.com/DylanPiercey/byte-length#readme","_id":"byte-length@0.1.1","scripts":{},"_shasum":"e9b4774dbce7c59764bf5be87c302789a88738c3","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.2.0","_npmUser":{"name":"anonymous","email":"pierceydylan@gmail.com"},"dist":{"shasum":"e9b4774dbce7c59764bf5be87c302789a88738c3","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/byte-length/-/byte-length-0.1.1.tgz","integrity":"sha512-eBCmYK4D6sYzwdtBbYsrHdj1t3oV4+z83SoMKfd7q/H14wlgXUyezJvvKjRpjWcUALvjzTR2yl5sq2GRLyLtNA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPZBYiJl0jSssnBXE9WI71AUMHTG3StsbHC+KOXO6ZjQIgZU2XyeRUvy+/Acn07E1Np8zB4rPDvJaA45FwkS02C3Y="}]},"maintainers":[{"name":"anonymous","email":"pierceydylan@gmail.com"}],"contributors":[]},"1.0.0":{"name":"byte-length","description":"Get the real byte length of a string.","version":"1.0.0","author":{"name":"Dylan Piercey","email":"pierceydylan@gmail.com"},"bugs":{"url":"https://github.com/DylanPiercey/byte-length/issues"},"devDependencies":{"@types/mocha":"^2.2.43","@types/node":"^8.0.34","coveralls":"^3.0.0","husky":"^0.14.3","lint-staged":"^4.2.3","mocha":"^4.0.1","nyc":"^11.2.1","prettier":"^1.7.4","ts-node":"^3.3.0","tslint":"^5.7.0","tslint-config-prettier":"^1.5.0","typescript":"^2.5.3"},"homepage":"https://github.com/DylanPiercey/byte-length","keywords":["bytes","content-length","length","string"],"license":"MIT","lint-staged":{"*.ts":["prettier --write","tslint -t codeFrame -c tslint.json","git add"]},"main":"index.js","repository":{"type":"git","url":"git+https://github.com/DylanPiercey/byte-length.git"},"scripts":{"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"},"types":"dist/index.d.ts","gitHead":"8a1d21cbde7baa6d42489bb9d8bffdb290b9896d","_id":"byte-length@1.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.4.0","_npmUser":{"name":"anonymous","email":"pierceydylan@gmail.com"},"dist":{"integrity":"sha512-wjuzogx3/tLtJFASKwrDyzrCFUEM3rsTs6QaWhQZuS6aZuqd5o4y0NssrUW2pNA+O4Bxn9II2bLWHnGBcm+tzQ==","shasum":"8b6c3790660e7cb4b8d1c561f9e31533ed476e9c","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/byte-length/-/byte-length-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE5bO2LaQo5jxtqahMlr/vSN7PzeeThmSxTprZRHipA2AiAwq9kHdrS7qQkXhM+g76xPUemV/buuq1P6WC4s5x2qfQ=="}]},"maintainers":[{"name":"anonymous","email":"pierceydylan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/byte-length-1.0.0.tgz_1508026062470_0.7059811560902745"},"contributors":[]},"1.0.1":{"name":"byte-length","description":"Get the real byte length of a string.","version":"1.0.1","author":{"name":"Dylan Piercey","email":"pierceydylan@gmail.com"},"bugs":{"url":"https://github.com/DylanPiercey/byte-length/issues"},"devDependencies":{"@types/mocha":"^2.2.43","@types/node":"^8.0.34","coveralls":"^3.0.0","husky":"^0.14.3","lint-staged":"^4.2.3","mocha":"^4.0.1","nyc":"^11.2.1","prettier":"^1.7.4","ts-node":"^3.3.0","tslint":"^5.7.0","tslint-config-prettier":"^1.5.0","typescript":"^2.5.3"},"files":["dist"],"homepage":"https://github.com/DylanPiercey/byte-length","keywords":["bytes","content-length","length","string"],"license":"MIT","lint-staged":{"*.ts":["prettier --write","tslint -t codeFrame -c tslint.json","git add"]},"main":"index.js","repository":{"type":"git","url":"git+https://github.com/DylanPiercey/byte-length.git"},"scripts":{"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"},"types":"dist/index.d.ts","gitHead":"21bd5d3fc339579ef3a4d05ec7f5a1362e28df90","_id":"byte-length@1.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.4.0","_npmUser":{"name":"anonymous","email":"pierceydylan@gmail.com"},"dist":{"integrity":"sha512-lhAEbhvUFLpopt0psalRp7//VGCKJF/eOAgsxwvYgr9H6olQ+83y3+HsqTIrl93JjR8mhcHugB4muhABusYZIw==","shasum":"79a494150c0765242d7eeb3423def9e02033f735","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/byte-length/-/byte-length-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGCzIuh+cHFjKZoyo7OcTEOSNa0YZjPSN4GuTEeoeT7EAiEAuEgrX6ft7XOS+suhu4S+wBbQXQ5qrSNZMTdnFUDu3xw="}]},"maintainers":[{"name":"anonymous","email":"pierceydylan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/byte-length-1.0.1.tgz_1508028147575_0.8307609937619418"},"contributors":[]},"1.0.2":{"name":"byte-length","description":"Get the real byte length of a string.","version":"1.0.2","author":{"name":"Dylan Piercey","email":"pierceydylan@gmail.com"},"bugs":{"url":"https://github.com/DylanPiercey/byte-length/issues"},"devDependencies":{"@types/mocha":"^2.2.43","@types/node":"^8.0.34","coveralls":"^3.0.0","husky":"^0.14.3","lint-staged":"^4.2.3","mocha":"^4.0.1","nyc":"^11.2.1","prettier":"^1.7.4","ts-node":"^3.3.0","tslint":"^5.7.0","tslint-config-prettier":"^1.5.0","typescript":"^2.5.3"},"files":["dist"],"homepage":"https://github.com/DylanPiercey/byte-length","keywords":["bytes","content-length","length","string"],"license":"MIT","lint-staged":{"*.ts":["prettier --write","tslint -t codeFrame -c tslint.json","git add"]},"main":"dist/index.js","repository":{"type":"git","url":"git+https://github.com/DylanPiercey/byte-length.git"},"scripts":{"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"},"types":"dist/index.d.ts","gitHead":"ac43901684c5abb621c2e92c8268c47394841cc9","_id":"byte-length@1.0.2","_npmVersion":"5.5.1","_nodeVersion":"8.4.0","_npmUser":{"name":"anonymous","email":"pierceydylan@gmail.com"},"dist":{"integrity":"sha512-ovBpjmsgd/teRmgcPh23d4gJvxDoXtAzEL9xTfMU8Yc2kqCDb7L9jAG0XHl1nzuGl+h3ebCIF1i62UFyA9V/2Q==","shasum":"ba5a5909240b0121c079b7f7b15248d6f08223cc","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/byte-length/-/byte-length-1.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD08Vx20K+HwaCiHADuMCwZUbbcgHjD+1/zsyjKFzpZAQIgT3EFDZOlfDcC5bkOuHECgjhLNz02z2VnBICD1yTIUIA="}]},"maintainers":[{"name":"anonymous","email":"pierceydylan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/byte-length-1.0.2.tgz_1508201205736_0.6627583813387901"},"contributors":[]}},"dist-tags":{"latest":"1.0.2"},"name":"byte-length","time":{"modified":"2022-01-27T00:26:09.873Z","created":"2022-01-27T00:26:09.873Z","0.1.0":"2015-10-03T04:35:33.932Z","0.1.1":"2015-12-18T04:11:01.701Z","1.0.0":"2017-10-15T00:07:42.586Z","1.0.1":"2017-10-15T00:42:27.673Z","1.0.2":"2017-10-17T00:46:45.816Z"},"readme":"<h1 align=\"center\">\n  <!-- Logo -->\n  <br/>\n  Byte-Length\n\t<br/>\n\n  <!-- Stability -->\n  <a href=\"https://nodejs.org/api/documentation.html#documentation_stability_index\">\n    <img src=\"https://img.shields.io/badge/stability-stable-brightgreen.svg\" alt=\"API Stability\"/>\n  </a>\n  <!-- TypeScript -->\n  <a href=\"http://typescriptlang.org\">\n    <img src=\"https://img.shields.io/badge/%3C%2F%3E-typescript-blue.svg\" alt=\"TypeScript\"/>\n  </a>\n  <!-- Prettier -->\n  <a href=\"https://github.com/prettier/prettier\">\n    <img src=\"https://img.shields.io/badge/styled_with-prettier-ff69b4.svg\" alt=\"Styled with prettier\"/>\n  </a>\n  <!-- Travis build -->\n  <a href=\"https://travis-ci.org/DylanPiercey/byte-length\">\n  <img src=\"https://img.shields.io/travis/DylanPiercey/byte-length.svg\" alt=\"Build status\"/>\n  </a>\n  <!-- Coveralls coverage -->\n  <a href=\"https://coveralls.io/github/DylanPiercey/byte-length\">\n    <img src=\"https://img.shields.io/coveralls/DylanPiercey/byte-length.svg\" alt=\"Test Coverage\"/>\n  </a>\n  <!-- NPM version -->\n  <a href=\"https://npmjs.org/package/byte-length\">\n    <img src=\"https://img.shields.io/npm/v/byte-length.svg\" alt=\"NPM Version\"/>\n  </a>\n  <!-- Downloads -->\n  <a href=\"https://npmjs.org/package/byte-length\">\n    <img src=\"https://img.shields.io/npm/dm/byte-length.svg\" alt=\"Downloads\"/>\n  </a>\n  <!-- Size -->\n  <a href=\"https://npmjs.org/package/byte-length\">\n    <img src=\"https://img.shields.io/badge/size-422b-green.svg\" alt=\"Browser Bundle Size\"/>\n  </a>\n</h1>\n\nCalculate the real byte length of any string.\n\n# Why\nIn node many will use `Buffer.byteLength`, however including the entire buffer shim in the browser just for getting the byte length of a string is not very conservative.\n\n# Installation\n\n```console\nnpm install byte-length\n```\n\n# Example\n\n```javascript\nimport { byteLength } from \"byte-length\";\n\nbyteLength(\"hello\"); //-> 5\nbyteLength(\"😀\"); //-> 4\nbyteLength(\"ｆｕｌｌｗｉｄｔｈ　ｃｈａｒａｃｔｅｒｓ\"); //-> 60\n```\n\n### Contributions\n\n* Use `npm test` to run tests.\n\nPlease feel free to create a PR!","users":{}}