{"_id":"utf8-byte-length","_rev":"9-e243c5785dffc1d9728a7346d00778ea","name":"utf8-byte-length","description":"Get utf8 byte length of string","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.0":{"name":"utf8-byte-length","version":"1.0.0","description":"Get byte length of utf8 string","main":"index.js","browser":"browser.js","scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git+https://github.com/parshap/utf8-byte-length.git"},"keywords":["utf8"],"author":{"name":"Carl Xiong","email":"xiongc05@gmail.com"},"license":"WTFPL","bugs":{"url":"https://github.com/parshap/utf8-byte-length/issues"},"homepage":"https://github.com/parshap/utf8-byte-length#readme","devDependencies":{"tape":"^4.2.2"},"contributors":[{"name":"Carl Xiong","email":"xiongc05@gmail.com"},{"name":"Parsha Pourkhomami","email":"parshap@gmail.com"}],"gitHead":"c35430bf58c27ac1ca1e5e3c1f9e5014472b0690","_id":"utf8-byte-length@1.0.0","_shasum":"29c239ab5eadf23cdc4c8315e963e4325cb2d4e0","_from":".","_npmVersion":"2.12.1","_nodeVersion":"0.12.7","_npmUser":{"name":"parshap","email":"parshap+npm@gmail.com"},"maintainers":[{"name":"parshap","email":"parshap+npm@gmail.com"}],"dist":{"shasum":"29c239ab5eadf23cdc4c8315e963e4325cb2d4e0","tarball":"https://registry.npmjs.org/utf8-byte-length/-/utf8-byte-length-1.0.0.tgz","integrity":"sha512-FzRSl5yzPlOFZo57EsIIOeuVNhjdNVbC1FYJz6PGoGFNp5OuniU9uk+dvpuukYfhNEF3wtaMh4L599IfX9P/Qw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDuSqjgK1BnBYKwfGu5W1Iz1cFrUMXOzJiYgyZREk2bmAiB2QTXwZgpeCH84I95qU+c9Xu4AsyXcSDxgFcxEPYc56w=="}]},"directories":{}},"1.0.1":{"name":"utf8-byte-length","version":"1.0.1","description":"Get byte length of utf8 string","main":"index.js","browser":"browser.js","scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git+https://github.com/parshap/utf8-byte-length.git"},"keywords":["utf8"],"author":{"name":"Carl Xiong","email":"xiongc05@gmail.com"},"license":"WTFPL","bugs":{"url":"https://github.com/parshap/utf8-byte-length/issues"},"homepage":"https://github.com/parshap/utf8-byte-length#readme","devDependencies":{"tape":"^4.2.2"},"contributors":[{"name":"Carl Xiong","email":"xiongc05@gmail.com"},{"name":"Parsha Pourkhomami","email":"parshap@gmail.com"}],"gitHead":"f903d597f72f7a75524e928d57358ec94b04240a","_id":"utf8-byte-length@1.0.1","_shasum":"490d389b08874cee5bb2853c4e151c5f08af71ec","_from":".","_npmVersion":"2.12.1","_nodeVersion":"0.12.7","_npmUser":{"name":"parshap","email":"parshap+npm@gmail.com"},"maintainers":[{"name":"parshap","email":"parshap+npm@gmail.com"}],"dist":{"shasum":"490d389b08874cee5bb2853c4e151c5f08af71ec","tarball":"https://registry.npmjs.org/utf8-byte-length/-/utf8-byte-length-1.0.1.tgz","integrity":"sha512-HnaQbDHF31QaNstT1LlO0k2OVWN3Vxy1YIs1N0KF3suDBWf3DOA9sc0aqjL7CCADv+JCJUv44eNm+glVNivIxw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEMtCuXBixGylFSmdY7nheRe/ScPjx1KL0nq2/5DQymqAiAImaT+IRGnXEdmqTxjItaZpoLliKGvtVUMVFR3A5aTcQ=="}]},"directories":{}},"1.0.2":{"name":"utf8-byte-length","version":"1.0.2","description":"Get byte length of utf8 string","main":"index.js","browser":"browser.js","scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git+https://github.com/parshap/utf8-byte-length.git"},"keywords":["utf8"],"author":{"name":"Carl Xiong","email":"xiongc05@gmail.com"},"license":"WTFPL","bugs":{"url":"https://github.com/parshap/utf8-byte-length/issues"},"homepage":"https://github.com/parshap/utf8-byte-length#readme","devDependencies":{"tape":"^4.2.2"},"contributors":[{"name":"Carl Xiong","email":"xiongc05@gmail.com"},{"name":"Parsha Pourkhomami","email":"parshap@gmail.com"}],"gitHead":"bf0e07231c36160b17a44ba193e3ead604e95a11","_id":"utf8-byte-length@1.0.2","_shasum":"d00af4d0d5c115cfc2605a8c9af9d8b0d2516027","_from":".","_npmVersion":"2.12.1","_nodeVersion":"0.12.7","_npmUser":{"name":"parshap","email":"parshap+npm@gmail.com"},"maintainers":[{"name":"parshap","email":"parshap+npm@gmail.com"}],"dist":{"shasum":"d00af4d0d5c115cfc2605a8c9af9d8b0d2516027","tarball":"https://registry.npmjs.org/utf8-byte-length/-/utf8-byte-length-1.0.2.tgz","integrity":"sha512-wqhjjg+bo0/rnzyujwpOAviWX7z+kRKBFCrCE1xpV2HXkFvXM9AzodRtvajrikvFKi8ugj5Z70ZTzPXjawL1PQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRLW7ihvuAxeUSq0Av3yxynSFuOWkkGSO+oHD/5K2vMAIgefbf91RPBXzLOLZykhin+AtGOLIwuyPvcnWt9pj3WnA="}]},"directories":{}},"1.0.3":{"name":"utf8-byte-length","version":"1.0.3","description":"Get utf8 byte length of string","main":"index.js","browser":"browser.js","scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git+https://github.com/parshap/utf8-byte-length.git"},"keywords":["utf8"],"author":{"name":"Carl Xiong","email":"xiongc05@gmail.com"},"license":"WTFPL","bugs":{"url":"https://github.com/parshap/utf8-byte-length/issues"},"homepage":"https://github.com/parshap/utf8-byte-length#readme","devDependencies":{"tape":"^4.2.2"},"contributors":[{"name":"Carl Xiong","email":"xiongc05@gmail.com"},{"name":"Parsha Pourkhomami","email":"parshap@gmail.com"}],"gitHead":"b22b020e0dc34df47a1ccdb5e0ce79ed38fb867e","_id":"utf8-byte-length@1.0.3","_shasum":"8282a9bcdceb3c7fee2ec4bd77154407b836edef","_from":".","_npmVersion":"2.12.1","_nodeVersion":"0.12.7","_npmUser":{"name":"parshap","email":"parshap+npm@gmail.com"},"maintainers":[{"name":"carltonf","email":"xiongc05@gmail.com"},{"name":"parshap","email":"parshap+npm@gmail.com"}],"dist":{"shasum":"8282a9bcdceb3c7fee2ec4bd77154407b836edef","tarball":"https://registry.npmjs.org/utf8-byte-length/-/utf8-byte-length-1.0.3.tgz","integrity":"sha512-za5JaRrDrGCsTyOmO+PLWCvzD9zOts5ES9Q93Vakksjs5EresyCxgLS7omf5uoJAhwmcq1bciatfKuv7bWuPsA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3hkV64CizBUlahBLzGuWYr8aTz3ZVLVLNbJcbHXv3lQIgL+JafUMY+BSgZYWdGkEiifr/2euFFjBvWPEb/FUcqEQ="}]},"directories":{}},"1.0.4":{"name":"utf8-byte-length","version":"1.0.4","description":"Get utf8 byte length of string","main":"index.js","browser":"browser.js","scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git+https://github.com/parshap/utf8-byte-length.git"},"keywords":["utf8"],"author":{"name":"Carl Xiong","email":"xiongc05@gmail.com"},"license":"WTFPL","bugs":{"url":"https://github.com/parshap/utf8-byte-length/issues"},"homepage":"https://github.com/parshap/utf8-byte-length#readme","devDependencies":{"tape":"^4.2.2"},"contributors":[{"name":"Carl Xiong","email":"xiongc05@gmail.com"},{"name":"Parsha Pourkhomami","email":"parshap@gmail.com"}],"gitHead":"c369b9b4e23ac288fcce9a2aa8fe588fed3b7d4d","_id":"utf8-byte-length@1.0.4","_shasum":"f45f150c4c66eee968186505ab93fcbb8ad6bf61","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.6.0","_npmUser":{"name":"parshap","email":"parshap+npm@gmail.com"},"dist":{"shasum":"f45f150c4c66eee968186505ab93fcbb8ad6bf61","tarball":"https://registry.npmjs.org/utf8-byte-length/-/utf8-byte-length-1.0.4.tgz","integrity":"sha512-4+wkEYLBbWxqTahEsWrhxepcoVOJ+1z5PGIjPZxRkytcdSUaNjIjBM7Xn8E+pdSuV7SzvWovBFA54FO0JSoqhA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCq89SAUc0AiE8QCPx6S0Ku8aAkV0txiPz75+ltJKVGawIgTkoSg+etgpZyQRVD5uegdughOdhnboLbU4kUEPzVQfg="}]},"maintainers":[{"name":"carltonf","email":"xiongc05@gmail.com"},{"name":"parshap","email":"parshap+npm@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/utf8-byte-length-1.0.4.tgz_1475174567228_0.7343337591737509"},"directories":{}},"1.0.5":{"name":"utf8-byte-length","version":"1.0.5","description":"Get utf8 byte length of string","main":"index.js","browser":"browser.js","scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git+https://github.com/parshap/utf8-byte-length.git"},"keywords":["utf8"],"author":{"name":"Carl Xiong","email":"xiongc05@gmail.com"},"license":"(WTFPL OR MIT)","bugs":{"url":"https://github.com/parshap/utf8-byte-length/issues"},"homepage":"https://github.com/parshap/utf8-byte-length#readme","devDependencies":{"tape":"^4.2.2"},"_id":"utf8-byte-length@1.0.5","contributors":[{"name":"Carl Xiong","email":"xiongc05@gmail.com"},{"name":"Parsha Pourkhomami","email":"parshap@gmail.com"}],"gitHead":"7683664e3fcfb88f81ec6b05f40c541a2e2495be","_nodeVersion":"18.17.1","_npmVersion":"10.5.0","dist":{"integrity":"sha512-Xn0w3MtiQ6zoz2vFyUVruaCL53O/DwUvkEeOvj+uulMm0BkUGYWmBYVyElqZaSLhY6ZD0ulfU3aBra2aVT4xfA==","shasum":"f9f63910d15536ee2b2d5dd4665389715eac5c1e","tarball":"https://registry.npmjs.org/utf8-byte-length/-/utf8-byte-length-1.0.5.tgz","fileCount":10,"unpackedSize":6352,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDJLorupDVNmP97Mj0HOUs8cpt1xmvDTbRGC0PY6EbH4AiACoQVl6ZTA0XbFJe9zYFNi+uOocQjm07sgsdwt4uPTTA=="}]},"_npmUser":{"name":"parshap","email":"parshap+npm@gmail.com"},"directories":{},"maintainers":[{"name":"parshap","email":"parshap+npm@gmail.com"},{"name":"carltonf","email":"xiongc05@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/utf8-byte-length_1.0.5_1715714285524_0.156092420260042"},"_hasShrinkwrap":false}},"readme":"# utf8-byte-length [![build status](https://secure.travis-ci.org/parshap/utf8-byte-length.svg?branch=master)](http://travis-ci.org/parshap/utf8-byte-length)\n\nGet the utf8 byte length of a string, taking into account multi-byte\ncharacters and surrogate pairs.\n\nBy default, this module defers to `Buffer.byteLength`. A browser\nimplementation is also provided that doesn't use `Buffer.byteLength`\nminimize build size.\n\n## Example\n\n```js\nvar getLength = require(\"utf8-byte-length\")\nconsole.log(truncate(\"a☃\", 2)) // a = 1 byte, ☃ = 3 bytes\n// -> 4\n```\n\n## API\n\n### `var getLength = require(\"utf8-byte-length\")`\n\n*When using browserify or webpack*, this automatically resolves to an\nimplementation that does not use `Buffer.byteLength`.\n\n### `getLength(string)`\n\nReturns the byte length of `string`. Throws an error if `string` is not\na string.\n","maintainers":[{"name":"parshap","email":"parshap+npm@gmail.com"},{"name":"carltonf","email":"xiongc05@gmail.com"}],"time":{"modified":"2024-05-14T19:18:05.906Z","created":"2015-11-06T09:32:53.925Z","1.0.0":"2015-11-06T09:32:53.925Z","1.0.1":"2015-11-06T10:17:16.033Z","1.0.2":"2015-11-06T11:13:34.109Z","1.0.3":"2015-11-06T12:51:50.660Z","1.0.4":"2016-09-29T18:42:47.452Z","1.0.5":"2024-05-14T19:18:05.723Z"},"homepage":"https://github.com/parshap/utf8-byte-length#readme","keywords":["utf8"],"repository":{"type":"git","url":"git+https://github.com/parshap/utf8-byte-length.git"},"contributors":[{"name":"Carl Xiong","email":"xiongc05@gmail.com"},{"name":"Parsha Pourkhomami","email":"parshap@gmail.com"}],"author":{"name":"Carl Xiong","email":"xiongc05@gmail.com"},"bugs":{"url":"https://github.com/parshap/utf8-byte-length/issues"},"license":"(WTFPL OR MIT)","readmeFilename":"README.md"}