{"_id":"utfx","_rev":"41-492414f3cbb5418315865029b8749655","name":"utfx","description":"A compact library to encode, decode and convert UTF8 / UTF16 in JavaScript.","dist-tags":{"latest":"1.0.1"},"versions":{"0.1.0":{"name":"utfx","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"version":"0.1.0","description":"A minimalistic library to process, convert, encode and decode UTF8 / UTF16 in JavaScript using arbitrary sources and destinations through the use of callbacks.","main":"index.js","repository":{"type":"git","url":"https://github.com/dcodeIO/utfx.git"},"bugs":{"url":"https://github.com/dcodeIO/utfx/issues"},"keywords":["charset","encoding","unicode","utf8","utf16"],"dependencies":{},"devDependencies":{"testjs":"~1"},"license":"Apache-2.0","engines":{"node":">=0.8"},"scripts":{"build":"cp src/utfx.js dist/utfx.js","compile":"ccjs dist/utfx.js --compilation_level=ADVANCED_OPTIMIZATIONS > dist/utfx.min.js","test":"node node_modules/testjs/bin/testjs tests/suite.js","make":"npm run-script build && npm run-script compile && npm test"},"homepage":"https://github.com/dcodeIO/utfx","_id":"utfx@0.1.0","_shasum":"b76bf2f65f0fedd5d0d23859d451010fffafa817","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"dist":{"shasum":"b76bf2f65f0fedd5d0d23859d451010fffafa817","tarball":"https://registry.npmjs.org/utfx/-/utfx-0.1.0.tgz","integrity":"sha512-EUVZSal1OH9QKR6mbXjm+0S9/KWbHrdc37dzxH+sHOeU8v5xLcgjOUWPxLy2SZqomAV43XgG/cvKHZ+4cMbSmA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGbEo+77Iknaycs/MehZjJvFn/IXCCYwSvrAPDBmUnorAiEAl52UY90c5L/jTvaObpR62MXPSUbYPeiel0WvjvR6uE4="}]}},"0.2.0":{"name":"utfx","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"version":"0.2.0","description":"A minimalistic library to process, convert, encode and decode UTF8 / UTF16 in JavaScript using arbitrary sources and destinations through the use of callbacks.","main":"index.js","repository":{"type":"git","url":"https://github.com/dcodeIO/utfx.git"},"bugs":{"url":"https://github.com/dcodeIO/utfx/issues"},"keywords":["charset","encoding","unicode","utf8","utf16"],"dependencies":{},"devDependencies":{"testjs":"~1"},"license":"Apache-2.0","engines":{"node":">=0.8"},"scripts":{"build":"cp src/utfx.js dist/utfx.js","compile":"ccjs dist/utfx.js --compilation_level=ADVANCED_OPTIMIZATIONS > dist/utfx.min.js","test":"node node_modules/testjs/bin/testjs tests/suite.js","make":"npm run-script build && npm run-script compile && npm test"},"homepage":"https://github.com/dcodeIO/utfx","_id":"utfx@0.2.0","_shasum":"208688f41ffdaae1605bb79020b6f6704fb3551f","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"dist":{"shasum":"208688f41ffdaae1605bb79020b6f6704fb3551f","tarball":"https://registry.npmjs.org/utfx/-/utfx-0.2.0.tgz","integrity":"sha512-sI5gEhAbwFSepi0/8RIqwtuA/9JGPXnAb3wNbK7tF85LGCNFXIVehQUTI9vXa9m/9Lf8yIKid72VNgUsMCdo8Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLsM7dXLda1CO/rHZhOWzGc9ombdCfm3fj6c32qKVMbQIhAP9xvIt3de5WVI9lOZ8UwPq2DidxVkO1dHrYlNoXgnR4"}]}},"0.3.0":{"name":"utfx","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"version":"0.3.0","description":"A minimalistic library to process, convert, encode and decode UTF8 / UTF16 in JavaScript using arbitrary sources and destinations through the use of callbacks.","main":"index.js","repository":{"type":"git","url":"https://github.com/dcodeIO/utfx.git"},"bugs":{"url":"https://github.com/dcodeIO/utfx/issues"},"keywords":["charset","encoding","unicode","utf8","utf16"],"dependencies":{},"devDependencies":{"testjs":"~1"},"license":"Apache-2.0","engines":{"node":">=0.8"},"scripts":{"build":"cp src/utfx.js dist/utfx.js","compile":"ccjs dist/utfx.js --compilation_level=ADVANCED_OPTIMIZATIONS > dist/utfx.min.js","test":"node node_modules/testjs/bin/testjs tests/suite.js","make":"npm run-script build && npm run-script compile && npm test"},"homepage":"https://github.com/dcodeIO/utfx","_id":"utfx@0.3.0","_shasum":"7486b81f0904efb2c191c77a10b74a859f9087f8","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"dist":{"shasum":"7486b81f0904efb2c191c77a10b74a859f9087f8","tarball":"https://registry.npmjs.org/utfx/-/utfx-0.3.0.tgz","integrity":"sha512-7qheeZBjwkNn/hyvWrM86uj1NqAv47/IKp+FjyuRXuFbyFJ2sudznL/QEyL2UA2nB3jMYatEivqLJr41c4Ybng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD7hlyKuMccVjM42dLKE6TqSMH3qlVJrWRQrm8HoIoPIgIgJTijqHJGNM4emQPJrPqKndNT4kBtFcoBuB3GemKn250="}]}},"0.4.0":{"name":"utfx","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"version":"0.4.0","description":"A minimalistic library to process, convert, encode and decode UTF8 / UTF16 in JavaScript using arbitrary sources and destinations through the use of callbacks.","main":"index.js","repository":{"type":"git","url":"https://github.com/dcodeIO/utfx.git"},"bugs":{"url":"https://github.com/dcodeIO/utfx/issues"},"keywords":["charset","encoding","unicode","utf8","utf16"],"dependencies":{},"devDependencies":{"testjs":"~1"},"license":"Apache-2.0","engines":{"node":">=0.8"},"scripts":{"build":"cp src/utfx.js dist/utfx.js","compile":"ccjs dist/utfx.js --compilation_level=ADVANCED_OPTIMIZATIONS > dist/utfx.min.js","test":"node node_modules/testjs/bin/testjs tests/suite.js","make":"npm run-script build && npm run-script compile && npm test"},"homepage":"https://github.com/dcodeIO/utfx","_id":"utfx@0.4.0","_shasum":"bf53f77ffce9a16e943e8c029acb684024131b14","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"dist":{"shasum":"bf53f77ffce9a16e943e8c029acb684024131b14","tarball":"https://registry.npmjs.org/utfx/-/utfx-0.4.0.tgz","integrity":"sha512-JTw+PzXJZ7afrOXzpxySVWQSGHyXzcgocX71JjYkkeOsIlQzgXiGGXtl6T2bxyoBRRb2+te9llJx/AgG7e3NMw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICCZIpR/N8b1mEHlkbgV8yz8XyT3cvo7wAKWFURdoL2QAiAn7m7G41+sbI1DW7S7wy62/v2vVV0dZ7UJ/JOSwG8bnQ=="}]}},"0.5.0":{"name":"utfx","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"version":"0.5.0","description":"A minimalistic library to process, convert, encode and decode UTF8 / UTF16 in JavaScript using arbitrary sources and destinations through the use of callbacks.","main":"index.js","repository":{"type":"git","url":"https://github.com/dcodeIO/utfx.git"},"bugs":{"url":"https://github.com/dcodeIO/utfx/issues"},"keywords":["charset","encoding","unicode","utf8","utf16"],"dependencies":{},"devDependencies":{"testjs":"~1"},"license":"Apache-2.0","engines":{"node":">=0.8"},"scripts":{"build":"cp src/utfx.js dist/utfx.js","compile":"ccjs dist/utfx.js --compilation_level=ADVANCED_OPTIMIZATIONS > dist/utfx.min.js","test":"node node_modules/testjs/bin/testjs tests/suite.js","make":"npm run-script build && npm run-script compile && npm test"},"homepage":"https://github.com/dcodeIO/utfx","_id":"utfx@0.5.0","_shasum":"822d4fc68c11c46f250035f4e10ac05811a347d4","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"dist":{"shasum":"822d4fc68c11c46f250035f4e10ac05811a347d4","tarball":"https://registry.npmjs.org/utfx/-/utfx-0.5.0.tgz","integrity":"sha512-NP3u9JdjMmzQJuxHbFAccpccNKL9wmuYwWImS5cTzhF94HpBdqRBi3LOUYGkEr12xuRYwEhQSjmfx2+69JAnFQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDYOLVXcvmkNZpq8dYqBQdBjPjRivP64Nt//exA0q4QxAiAJiEBgnZAt3pH8Bll7ZQWAmWaPKxmHPxcu4AijRxcHyg=="}]}},"0.6.0":{"name":"utfx","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"version":"0.6.0","description":"A compact library to process, convert, encode and decode UTF8 / UTF16 in JavaScript using arbitrary sources and destinations through the use of callbacks.","main":"index.js","repository":{"type":"git","url":"https://github.com/dcodeIO/utfx.git"},"bugs":{"url":"https://github.com/dcodeIO/utfx/issues"},"keywords":["charset","encoding","unicode","utf8","utf16"],"dependencies":{},"devDependencies":{"testjs":"~1","metascript":"~0","closurecompiler":"~1"},"license":"Apache-2.0","engines":{"node":">=0.8"},"scripts":{"build":"node node_modules/metascript/bin/metascript src/utfx.js > dist/utfx.js","compile":"ccjs dist/utfx.js --compilation_level=ADVANCED_OPTIMIZATIONS > dist/utfx.min.js","test":"node node_modules/testjs/bin/testjs tests/suite.js","make":"npm run-script build && npm run-script compile && npm test"},"homepage":"https://github.com/dcodeIO/utfx","_id":"utfx@0.6.0","_shasum":"48e8602d09f7d518b08d4a8fb34ae00f2365062a","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"dist":{"shasum":"48e8602d09f7d518b08d4a8fb34ae00f2365062a","tarball":"https://registry.npmjs.org/utfx/-/utfx-0.6.0.tgz","integrity":"sha512-TRmGQSQdRJs9Xr34nUVTaG98ZkkOn5ZqdohCw+XkNHqBqyBIWZUU7IS01Q8WaYVoLO+ab6bGx9AnMHqeKvln6w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHcF/3n1yZ/FrVHhrhIOUHgkGXJ21vpb5f/vCcUqO4xTAiBvtI1MJnksgipRT+YPRBsB5c4DSloB82XBrURQ/mv8vw=="}]}},"0.6.1":{"name":"utfx","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"version":"0.6.1","description":"A compact library to process, convert, encode and decode UTF8 / UTF16 in JavaScript using arbitrary sources and destinations through the use of callbacks.","main":"index.js","repository":{"type":"git","url":"https://github.com/dcodeIO/utfx.git"},"bugs":{"url":"https://github.com/dcodeIO/utfx/issues"},"keywords":["charset","encoding","unicode","utf8","utf16"],"dependencies":{},"devDependencies":{"testjs":"~1","metascript":"~0","closurecompiler":"~1"},"license":"Apache-2.0","engines":{"node":">=0.8"},"scripts":{"build":"node node_modules/metascript/bin/metascript src/utfx.js > dist/utfx.js","compile":"ccjs dist/utfx.js --compilation_level=ADVANCED_OPTIMIZATIONS > dist/utfx.min.js","test":"node node_modules/testjs/bin/testjs tests/suite.js","make":"npm run-script build && npm run-script compile && npm test"},"homepage":"https://github.com/dcodeIO/utfx","_id":"utfx@0.6.1","_shasum":"4ab74007e35f5281224fdaabc808367c7847897c","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"dist":{"shasum":"4ab74007e35f5281224fdaabc808367c7847897c","tarball":"https://registry.npmjs.org/utfx/-/utfx-0.6.1.tgz","integrity":"sha512-Xnb5VNwqAcBUEp9e9fKI0pA6ZxxzJ/w570Aaghyb2ZME9gGfXJZuEEUMRE8/K1xPMDUtL/oiDbnYyvNlkKxNIg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCvaajEJzthku/wuZMHDuGBjIUavAEvUCT/nPhT77VhlAIgbCq/5V4zwWNVdSVQXg+OJtqdeyNYTPt7EiN9jSr8wbY="}]}},"0.7.1":{"name":"utfx","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"version":"0.7.1","description":"A compact library to process, convert, encode and decode UTF8 / UTF16 in JavaScript using arbitrary sources and destinations through the use of callbacks.","main":"index.js","repository":{"type":"git","url":"https://github.com/dcodeIO/utfx.git"},"bugs":{"url":"https://github.com/dcodeIO/utfx/issues"},"keywords":["charset","encoding","unicode","utf8","utf16"],"dependencies":{},"devDependencies":{"testjs":"~1","metascript":"~0","closurecompiler":"~1"},"license":"Apache-2.0","engines":{"node":">=0.8"},"scripts":{"build":"node node_modules/metascript/bin/metascript src/utfx.js > dist/utfx.js && node node_modules/metascript/bin/metascript src/lib.js > dist/utfx.embeddable.js","compile":"ccjs dist/utfx.js --compilation_level=ADVANCED_OPTIMIZATIONS > dist/utfx.min.js","test":"node tests/suite.js","make":"npm run-script build && npm run-script compile && npm test"},"homepage":"https://github.com/dcodeIO/utfx","_id":"utfx@0.7.1","_shasum":"8d387014f27747eec02ca3aba45874d0a5fd2bbd","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"dist":{"shasum":"8d387014f27747eec02ca3aba45874d0a5fd2bbd","tarball":"https://registry.npmjs.org/utfx/-/utfx-0.7.1.tgz","integrity":"sha512-xLrl3ZJKHVaWxSD8MW/GvqCEDdFp4jYFf7Yz75vO8JqAzK6+ANs3SXWmXK40Oe3pBFTVcrpFn/Zjp6L+/uW8Sw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDH0CPGHElnSc1KPoZbyNGei9qgZk3fr/7i9vvDKTkRswIgTvYGGgWRd+Zyw+obQdamVBwfwqGzTDDz33YjoL7mJOY="}]}},"0.7.2":{"name":"utfx","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"version":"0.7.2","description":"A compact library to process, convert, encode and decode UTF8 / UTF16 in JavaScript using arbitrary sources and destinations through the use of callbacks.","main":"index.js","repository":{"type":"git","url":"https://github.com/dcodeIO/utfx.git"},"bugs":{"url":"https://github.com/dcodeIO/utfx/issues"},"keywords":["charset","encoding","unicode","utf8","utf16"],"dependencies":{},"devDependencies":{"testjs":"~1","metascript":"~0","closurecompiler":"~1"},"license":"Apache-2.0","engines":{"node":">=0.8"},"scripts":{"build":"node node_modules/metascript/bin/metascript src/utfx.js > dist/utfx.js && node node_modules/metascript/bin/metascript src/lib.js > dist/utfx.embeddable.js","compile":"ccjs dist/utfx.js --compilation_level=ADVANCED_OPTIMIZATIONS > dist/utfx.min.js","test":"node tests/suite.js","make":"npm run-script build && npm run-script compile && npm test"},"homepage":"https://github.com/dcodeIO/utfx","_id":"utfx@0.7.2","_shasum":"a225df4524d1a4534d8ab0b0f9c4a4421f0f3a39","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"dist":{"shasum":"a225df4524d1a4534d8ab0b0f9c4a4421f0f3a39","tarball":"https://registry.npmjs.org/utfx/-/utfx-0.7.2.tgz","integrity":"sha512-1tsek9A5Xg5QnTBqBlb+ZEnu497WS15u1MsWKIE1P07Z/AjLMV6EyRvlEQ0vaF1hjJuwnqvhTPi6w3+PvwN/ew==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVKjs6JD3pH3Cu6SU+rh+aYAe/kdL7w4iFMpLUwtd3egIgNC6z6H/nKS0VwiGir3eXresCcu/XzDwse5uX/irxRrs="}]}},"0.8.0":{"name":"utfx","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"version":"0.8.0","description":"A compact library to process, convert, encode and decode UTF8 / UTF16 in JavaScript using arbitrary sources and destinations through the use of callbacks.","main":"index.js","repository":{"type":"git","url":"https://github.com/dcodeIO/utfx.git"},"bugs":{"url":"https://github.com/dcodeIO/utfx/issues"},"keywords":["charset","encoding","unicode","utf8","utf16"],"dependencies":{},"devDependencies":{"testjs":"~1","metascript":"~0","closurecompiler":"~1"},"license":"Apache-2.0","engines":{"node":">=0.8"},"scripts":{"build":"node node_modules/metascript/bin/metascript src/utfx.js > dist/utfx.js && node node_modules/metascript/bin/metascript src/utfx-embeddable.js > dist/utfx-embeddable.js","compile":"ccjs dist/utfx.js --compilation_level=ADVANCED_OPTIMIZATIONS > dist/utfx.min.js && ccjs dist/utfx-embeddable.js --compilation_level=SIMPLE_OPTIMIZATIONS > dist/utfx-embeddable.min.js","test":"node tests/suite.js","make":"npm run-script build && npm run-script compile && npm test"},"homepage":"https://github.com/dcodeIO/utfx","_id":"utfx@0.8.0","_shasum":"e0b9b1f5541c1d0978711469f0c0d35a99f5a279","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"dist":{"shasum":"e0b9b1f5541c1d0978711469f0c0d35a99f5a279","tarball":"https://registry.npmjs.org/utfx/-/utfx-0.8.0.tgz","integrity":"sha512-EKzAnh17xRMKotuwc3xlKwTowYuqu5tOttjqD5lS9cFn4bLjDBLz5TcAhCppSLoud0ddXRbdyRJ/Y15u+xt3jg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEuZ/sik75mS0AXap0vcBE4HP5qWGD9pr66/f9+Ja9ghAiAHJvSJSApXNPU9ejfLhuo9DVtHhcYer5a68ZRuAhlMbw=="}]}},"0.8.1":{"name":"utfx","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"version":"0.8.1","description":"A compact library to encode, decode and convert UTF8 / UTF16 in JavaScript.","main":"index.js","repository":{"type":"git","url":"https://github.com/dcodeIO/utfx.git"},"bugs":{"url":"https://github.com/dcodeIO/utfx/issues"},"keywords":["charset","encoding","unicode","utf8","utf16"],"dependencies":{},"devDependencies":{"testjs":"~1","metascript":"~0","closurecompiler":"~1"},"license":"Apache-2.0","engines":{"node":">=0.8"},"scripts":{"build":"node node_modules/metascript/bin/metascript src/utfx.js > dist/utfx.js && node node_modules/metascript/bin/metascript src/utfx-embeddable.js > dist/utfx-embeddable.js","compile":"ccjs dist/utfx.js --compilation_level=ADVANCED_OPTIMIZATIONS > dist/utfx.min.js && ccjs dist/utfx-embeddable.js --compilation_level=SIMPLE_OPTIMIZATIONS > dist/utfx-embeddable.min.js","test":"node tests/suite.js","make":"npm run-script build && npm run-script compile && npm test"},"homepage":"https://github.com/dcodeIO/utfx","_id":"utfx@0.8.1","_shasum":"c655a22fc4165debaf3ce87a13dc5ee335269549","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"dist":{"shasum":"c655a22fc4165debaf3ce87a13dc5ee335269549","tarball":"https://registry.npmjs.org/utfx/-/utfx-0.8.1.tgz","integrity":"sha512-nNokZdI0dToMsQBof3MRkVgtphcTSxcqHFC3cNUw8bSmnObykweRbUq+ynBGXTYEYXB4QPPIZ0S+r6d0ZGGkkg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICOiU2DaRCWOEMZ9QorEVeyPsAw18URXTHr5CNqH8yiYAiApY9/9w9rJwy96FRCGFf008CUJlRyDLajsR2xevgQtpg=="}]}},"0.9.0":{"name":"utfx","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"version":"0.9.0","description":"A compact library to encode, decode and convert UTF8 / UTF16 in JavaScript.","main":"index.js","repository":{"type":"git","url":"https://github.com/dcodeIO/utfx.git"},"bugs":{"url":"https://github.com/dcodeIO/utfx/issues"},"keywords":["charset","encoding","unicode","utf8","utf16"],"dependencies":{},"devDependencies":{"testjs":"~1","metascript":"~0","closurecompiler":"~1"},"license":"Apache-2.0","engines":{"node":">=0.8"},"scripts":{"build":"node node_modules/metascript/bin/metascript src/utfx.js > dist/utfx.js && node node_modules/metascript/bin/metascript src/utfx-embeddable.js > dist/utfx-embeddable.js","compile":"ccjs dist/utfx.js --compilation_level=ADVANCED_OPTIMIZATIONS > dist/utfx.min.js && ccjs dist/utfx-embeddable.js --compilation_level=SIMPLE_OPTIMIZATIONS > dist/utfx-embeddable.min.js","test":"node tests/suite.js","make":"npm run-script build && npm run-script compile && npm test"},"homepage":"https://github.com/dcodeIO/utfx","_id":"utfx@0.9.0","_shasum":"dd0f0b7a17ef89c8cb669d4078dedc2103ebf317","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"dist":{"shasum":"dd0f0b7a17ef89c8cb669d4078dedc2103ebf317","tarball":"https://registry.npmjs.org/utfx/-/utfx-0.9.0.tgz","integrity":"sha512-lGXgErUz4Vq+fWZ/I6q/XJ91AOVfb5wqukQqM9fC6nZ3SALNGcqGwrf5B8Mgb2Fp/pOuptwVD5B+t17YAVn+Ww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCTV3Z6HXS7U3RZdZQ9Ic2/0tJjtAlocRq0bbZVspZO5AIgAbLdmtsFK/UTXowxoQgn6lUq9edDuH31hJ5uOAeC6w8="}]}},"0.9.1":{"name":"utfx","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"version":"0.9.1","description":"A compact library to encode, decode and convert UTF8 / UTF16 in JavaScript.","main":"index.js","repository":{"type":"git","url":"https://github.com/dcodeIO/utfx.git"},"bugs":{"url":"https://github.com/dcodeIO/utfx/issues"},"keywords":["charset","encoding","unicode","utf8","utf16"],"dependencies":{},"devDependencies":{"testjs":"~1","metascript":"~0","closurecompiler":"~1"},"license":"Apache-2.0","engines":{"node":">=0.8"},"scripts":{"build":"node node_modules/metascript/bin/metascript src/utfx.js > dist/utfx.js && node node_modules/metascript/bin/metascript src/utfx-embeddable.js > dist/utfx-embeddable.js","compile":"ccjs dist/utfx.js --compilation_level=ADVANCED_OPTIMIZATIONS > dist/utfx.min.js && ccjs dist/utfx-embeddable.js --compilation_level=SIMPLE_OPTIMIZATIONS > dist/utfx-embeddable.min.js","test":"node tests/suite.js","make":"npm run-script build && npm run-script compile && npm test"},"homepage":"https://github.com/dcodeIO/utfx","_id":"utfx@0.9.1","_shasum":"d375e6eef81ee6edd69f9e90bd8f718710d850ad","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"dist":{"shasum":"d375e6eef81ee6edd69f9e90bd8f718710d850ad","tarball":"https://registry.npmjs.org/utfx/-/utfx-0.9.1.tgz","integrity":"sha512-HkOpYdn7tJrXO0XPajsYI/D8bshE/lJpBP1CjTdcYN7rUw+PFmKXfloMCr0ZW3w7ONXbzMfW85FALjujALSEgA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGOOtpxhMEudFgd6VCvtkwIR1o6+rDhxB5saV+W+WsYVAiAVXwx1n354pFsfZRm7TUSFAArMjdajEX913pLHFwxm7A=="}]}},"0.10.0":{"name":"utfx","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"version":"0.10.0","description":"A compact library to encode, decode and convert UTF8 / UTF16 in JavaScript.","main":"index.js","repository":{"type":"git","url":"https://github.com/dcodeIO/utfx.git"},"bugs":{"url":"https://github.com/dcodeIO/utfx/issues"},"keywords":["charset","encoding","unicode","utf8","utf16"],"dependencies":{},"devDependencies":{"testjs":"~1","metascript":"~0","closurecompiler":"~1"},"license":"Apache-2.0","engines":{"node":">=0.8"},"scripts":{"build":"node node_modules/metascript/bin/metascript src/utfx.js > dist/utfx.js && node node_modules/metascript/bin/metascript src/utfx-embeddable.js > dist/utfx-embeddable.js","compile":"ccjs dist/utfx.js --compilation_level=ADVANCED_OPTIMIZATIONS > dist/utfx.min.js && ccjs dist/utfx-embeddable.js --compilation_level=SIMPLE_OPTIMIZATIONS > dist/utfx-embeddable.min.js","test":"node tests/suite.js","make":"npm run-script build && npm run-script compile && npm test"},"homepage":"https://github.com/dcodeIO/utfx","_id":"utfx@0.10.0","_shasum":"876f3d3c0d4ae500b09a232267b43d753af0c7a8","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"dist":{"shasum":"876f3d3c0d4ae500b09a232267b43d753af0c7a8","tarball":"https://registry.npmjs.org/utfx/-/utfx-0.10.0.tgz","integrity":"sha512-tVbs213cAppq5FJBbiPC5bT/Wu/ZtpSDUg5jUyU+WUQFnndZOWca9Skz89vECU0okl8mWMrF80NeE7P82VCzag==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGXMJB+F8h+VOvbup5mLVpOXhKX/3wWWE9ExO0IkcMrQIgR5AhCOX4QwMBdHCBMEJ+6ZbIq6g8spFy4I3ShOzI1t0="}]}},"0.11.0":{"name":"utfx","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"version":"0.11.0","description":"A compact library to encode, decode and convert UTF8 / UTF16 in JavaScript.","main":"index.js","repository":{"type":"git","url":"https://github.com/dcodeIO/utfx.git"},"bugs":{"url":"https://github.com/dcodeIO/utfx/issues"},"keywords":["charset","encoding","unicode","utf8","utf16"],"dependencies":{},"devDependencies":{"testjs":"~1","metascript":"~0","closurecompiler":"~1"},"license":"Apache-2.0","engines":{"node":">=0.8"},"scripts":{"build":"node node_modules/metascript/bin/metascript src/utfx.js > dist/utfx.js && node node_modules/metascript/bin/metascript src/utfx-embeddable.js > dist/utfx-embeddable.js","compile":"ccjs dist/utfx.js --compilation_level=ADVANCED_OPTIMIZATIONS > dist/utfx.min.js && ccjs dist/utfx-embeddable.js --compilation_level=SIMPLE_OPTIMIZATIONS > dist/utfx-embeddable.min.js","test":"node tests/suite.js","make":"npm run-script build && npm run-script compile && npm test"},"homepage":"https://github.com/dcodeIO/utfx","_id":"utfx@0.11.0","_shasum":"834ff000cbed2c9c03e7508f982b68b1b535dbba","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"dist":{"shasum":"834ff000cbed2c9c03e7508f982b68b1b535dbba","tarball":"https://registry.npmjs.org/utfx/-/utfx-0.11.0.tgz","integrity":"sha512-Jvx+YKSP6CWyK5o/WX+QwyLfi8K5SYx+8TsVcKVXaPAWM0GcATTMBF/98n5ffJILo7nNy7HKZfyAbqoQHbaHlw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEp1EWFH+hFV+ym77JxFWLa6qVvDNRvT8wpbmt0TYwnBAiEAkRO4M6m369X8w5/0Eu/v25rDfH5nUDGE3mz9XAUc5Cg="}]}},"0.11.1":{"name":"utfx","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"version":"0.11.1","description":"A compact library to encode, decode and convert UTF8 / UTF16 in JavaScript.","main":"index.js","repository":{"type":"git","url":"https://github.com/dcodeIO/utfx.git"},"bugs":{"url":"https://github.com/dcodeIO/utfx/issues"},"keywords":["charset","encoding","unicode","utf8","utf16"],"dependencies":{},"devDependencies":{"testjs":"~1","metascript":"~0","closurecompiler":"~1"},"license":"Apache-2.0","engines":{"node":">=0.8"},"scripts":{"build":"node node_modules/metascript/bin/metascript src/utfx.js > dist/utfx.js && node node_modules/metascript/bin/metascript src/utfx-embeddable.js > dist/utfx-embeddable.js","compile":"ccjs dist/utfx.js --compilation_level=ADVANCED_OPTIMIZATIONS > dist/utfx.min.js && ccjs dist/utfx-embeddable.js --compilation_level=SIMPLE_OPTIMIZATIONS > dist/utfx-embeddable.min.js","test":"node tests/suite.js","make":"npm run-script build && npm run-script compile && npm test"},"homepage":"https://github.com/dcodeIO/utfx","_id":"utfx@0.11.1","_shasum":"fd0240eec60df54e599bff1296b19e97ff3b7b06","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"dist":{"shasum":"fd0240eec60df54e599bff1296b19e97ff3b7b06","tarball":"https://registry.npmjs.org/utfx/-/utfx-0.11.1.tgz","integrity":"sha512-O7Oa37ZHwPOiAK6oA1nixkN8d9wxC44DmjfuWnULtL5FlxRh733dCALrzowB7ksuv7TvSrupGuKrfXS9sXK0xA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYHdZlSMls439D2Ko9n7ZK8pPypLmqezWbjCWQ+zpIUgIgBo/WMtt9zK8dbNsjIRJk6KoqZD3cRcNBG+tDqlt7Y9E="}]}},"0.12.0":{"name":"utfx","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"version":"0.12.0","description":"A compact library to encode, decode and convert UTF8 / UTF16 in JavaScript.","main":"index.js","repository":{"type":"git","url":"https://github.com/dcodeIO/utfx.git"},"bugs":{"url":"https://github.com/dcodeIO/utfx/issues"},"keywords":["charset","encoding","unicode","utf8","utf16"],"dependencies":{},"devDependencies":{"testjs":"~1","metascript":"~0","closurecompiler":"~1"},"license":"Apache-2.0","engines":{"node":">=0.8"},"scripts":{"build":"node node_modules/metascript/bin/metascript src/utfx.js > dist/utfx.js && node node_modules/metascript/bin/metascript src/utfx-embeddable.js > dist/utfx-embeddable.js","compile":"ccjs dist/utfx.js --compilation_level=ADVANCED_OPTIMIZATIONS > dist/utfx.min.js && ccjs dist/utfx-embeddable.js --compilation_level=SIMPLE_OPTIMIZATIONS > dist/utfx-embeddable.min.js","test":"node tests/suite.js","make":"npm run-script build && npm run-script compile && npm test"},"homepage":"https://github.com/dcodeIO/utfx","_id":"utfx@0.12.0","_shasum":"02574acedc03a6ff82cf0912186f6bc3f9dc293d","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"dist":{"shasum":"02574acedc03a6ff82cf0912186f6bc3f9dc293d","tarball":"https://registry.npmjs.org/utfx/-/utfx-0.12.0.tgz","integrity":"sha512-RYsRG/95Zb8lDmM+ee8iZrjEjjR5cNpimrb6ujYAFjlE9GsYv7lQlvM8krQIP31wXJu0uYSqWbX/3ToEGYJgfA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXIw2WcN1PXARIBLgsYIaRxwxW0oaPjYMtFyChm+OSlgIhAOqljhDoUjVwbvCOhkxJJkMweMuwriNYhA7H/Vw7lb86"}]}},"0.12.1":{"name":"utfx","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"version":"0.12.1","description":"A compact library to encode, decode and convert UTF8 / UTF16 in JavaScript.","main":"index.js","repository":{"type":"git","url":"https://github.com/dcodeIO/utfx.git"},"bugs":{"url":"https://github.com/dcodeIO/utfx/issues"},"keywords":["charset","encoding","unicode","utf8","utf16"],"dependencies":{},"devDependencies":{"testjs":"~1","metascript":"~0","closurecompiler":"~1"},"license":"Apache-2.0","engines":{"node":">=0.8"},"scripts":{"build":"node node_modules/metascript/bin/metascript src/utfx.js > dist/utfx.js && node node_modules/metascript/bin/metascript src/utfx-embeddable.js > dist/utfx-embeddable.js","compile":"ccjs dist/utfx.js --compilation_level=ADVANCED_OPTIMIZATIONS > dist/utfx.min.js && ccjs dist/utfx-embeddable.js --compilation_level=SIMPLE_OPTIMIZATIONS > dist/utfx-embeddable.min.js","test":"node tests/suite.js","make":"npm run-script build && npm run-script compile && npm test"},"homepage":"https://github.com/dcodeIO/utfx","_id":"utfx@0.12.1","_shasum":"121da6aa4f98a9bf930e59ad5e9146590a6c3adf","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"dist":{"shasum":"121da6aa4f98a9bf930e59ad5e9146590a6c3adf","tarball":"https://registry.npmjs.org/utfx/-/utfx-0.12.1.tgz","integrity":"sha512-cCWkwCPcr0hpuEUFMEHT+50tTs6OxKvu1eAo+P+aFd0GE10yQcb7BIs1GJ9pApW9/qkQz75Y4kuzQI5aW5MVQg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBg7SdqtrhX1WhAd4O9XfKt6cd0J9DNl7grj+zVIKHRQIhAKkPmK40CVYdah9PwAn8rfbxdfZoxc/M8Tnl5X6R+oa9"}]}},"1.0.0":{"name":"utfx","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"version":"1.0.0","description":"A compact library to encode, decode and convert UTF8 / UTF16 in JavaScript.","main":"index.js","repository":{"type":"git","url":"https://github.com/dcodeIO/utfx.git"},"bugs":{"url":"https://github.com/dcodeIO/utfx/issues"},"keywords":["charset","encoding","unicode","utf8","utf16"],"dependencies":{},"devDependencies":{"testjs":"~1","metascript":"~0","closurecompiler":"~1"},"license":"Apache-2.0","engines":{"node":">=0.8"},"scripts":{"build":"node node_modules/metascript/bin/metascript src/utfx.js > dist/utfx.js && node node_modules/metascript/bin/metascript src/utfx-embeddable.js > dist/utfx-embeddable.js","compile":"ccjs dist/utfx.js --compilation_level=ADVANCED_OPTIMIZATIONS > dist/utfx.min.js","test":"node tests/suite.js","make":"npm run-script build && npm run-script compile && npm test"},"homepage":"https://github.com/dcodeIO/utfx","_id":"utfx@1.0.0","_shasum":"a6ecdd5c70b2bf1f7fe2381afd1a806d0343b6e1","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"dist":{"shasum":"a6ecdd5c70b2bf1f7fe2381afd1a806d0343b6e1","tarball":"https://registry.npmjs.org/utfx/-/utfx-1.0.0.tgz","integrity":"sha512-AvxoX7kSUlOcC6OiNboaxwgV6+AIIemfFF1+X/PiR4+ENpBFwTaa59Vbdv2KvtyIdnfoORvWJl+a3aH/na+Jgw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLpmtuG6l+9sv/gUTdfLkwaPypzEcMl0CWw9jJrsHnOQIhANWe+mIgpkLNDponwIwQQ1ayAaFUEB8VPYqI6x0gk5/P"}]}},"1.0.1":{"name":"utfx","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"version":"1.0.1","description":"A compact library to encode, decode and convert UTF8 / UTF16 in JavaScript.","main":"index.js","repository":{"type":"git","url":"https://github.com/dcodeIO/utfx.git"},"bugs":{"url":"https://github.com/dcodeIO/utfx/issues"},"keywords":["charset","encoding","unicode","utf8","utf16"],"dependencies":{},"devDependencies":{"closurecompiler":"~1","metascript":"~0","pretty-hrtime":"^1.0.0","testjs":"~1","utf8":"^2.1.0"},"license":"Apache-2.0","engines":{"node":">=0.8"},"scripts":{"build":"node node_modules/metascript/bin/metascript src/wrap_standalone.js > dist/utfx.js && node node_modules/metascript/bin/metascript src/wrap_embeddable.js > dist/utfx-embeddable.js","compile":"node node_modules/closurecompiler/bin/ccjs dist/utfx.js --compilation_level=ADVANCED_OPTIMIZATIONS > dist/utfx.min.js","test":"node tests/suite.js","make":"npm run-script build && npm run-script compile && npm test"},"gitHead":"feb4e053f03194fa99fc7a5efa21df88b2c887d4","homepage":"https://github.com/dcodeIO/utfx","_id":"utfx@1.0.1","_shasum":"d52b2fd632a99eca8d9d4a39eece014a6a2b0048","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"dist":{"shasum":"d52b2fd632a99eca8d9d4a39eece014a6a2b0048","tarball":"https://registry.npmjs.org/utfx/-/utfx-1.0.1.tgz","integrity":"sha512-56Kk2uOPZyTQ1p6H54tyBWs86tW8kIOvOCVF6zl8HtQZHzCZnrRQI1JzbuWBG6ajgqGL/KzUcGSBAesYjNFlyw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDgBi6sXAe5Tyj97zjWXmJJCnbw8aRiV1sQ3QGpLXO5sAiEAgznZNHrhRDTRTb4AkwSgcvhOx5V+SvYb0GVYKPy6B40="}]}}},"readme":"![utfx - A compact library to encode, decode and convert UTF8 / UTF16 in JavaScript.](https://raw.github.com/dcodeIO/utfx/master/utfx.png)\r\n====\r\n**utfx** is a compact library to encode, decode and convert UTF8 / UTF16 in JavaScript using arbitrary sources and\r\ndestinations through the use of successively called functions, basically eliminating [memory overhead](https://github.com/dcodeIO/utfx/wiki#faq).\r\n\r\nThe standalone library is also capable of using binary strings and arrays (with the usual overhead) and provides\r\npolyfills for `String.fromCodePoint` and `String#codePointAt`.\r\n\r\nAPI\r\n---\r\n\r\n### encodeUTF8(src, dst)\r\n\r\nEncodes UTF8 code points to UTF8 bytes.\r\n\r\n| Parameter       | Type            | Description\r\n|-----------------|-----------------|---------------\r\n| src             | *function():(number &#124; null) &#124; number* | Code points source, either as a function returning the next code point respectively `null` if there are no more code points left or a single numeric code point. \r\n| dst             | *function(number)* | Bytes destination as a function successively called with the next byte \r\n\r\n### decodeUTF8(src, dst)\r\n\r\nDecodes UTF8 bytes to UTF8 code points.\r\n\r\n| Parameter       | Type            | Description\r\n|-----------------|-----------------|---------------\r\n| src             | *function():(number &#124; null)* | Bytes source as a function returning the next byte respectively `null` if there are no more bytes left. \r\n| dst             | *function(number)* | Code points destination as a function successively called with each decoded code point. \r\n| **@throws**     | *RangeError*    | If a starting byte is invalid in UTF8 \r\n| **@throws**     | *Error*         | If the last sequence is truncated. Has an array property `bytes` holding the remaining bytes. \r\n\r\n### UTF16toUTF8(src, dst)\r\n\r\nConverts UTF16 characters to UTF8 code points.\r\n\r\n| Parameter       | Type            | Description\r\n|-----------------|-----------------|---------------\r\n| src             | *function():(number &#124; null)* | Characters source as a function returning the next char code respectively `null` if there are no more characters left. \r\n| dst             | *function(number)* | Code points destination as a function successively called with each converted code point. \r\n\r\n### UTF8toUTF16(src, dst)\r\n\r\nConverts UTF8 code points to UTF16 characters.\r\n\r\n| Parameter       | Type            | Description\r\n|-----------------|-----------------|---------------\r\n| src             | *function():(number &#124; null) &#124; number* | Code points source, either as a function returning the next code point respectively `null` if there are no more code points left or a single numeric code point. \r\n| dst             | *function(number)* | Characters destination as a function successively called with each converted char code. \r\n| **@throws**     | *RangeError*    | If a code point is out of range \r\n\r\n### encodeUTF16toUTF8(src, dst)\r\n\r\nConverts and encodes UTF16 characters to UTF8 bytes.\r\n\r\n| Parameter       | Type            | Description\r\n|-----------------|-----------------|---------------\r\n| src             | *function():(number &#124; null)* | Characters source as a function returning the next char code respectively `null` if there are no more characters left. \r\n| dst             | *function(number)* | Bytes destination as a function successively called with the next byte. \r\n\r\n### decodeUTF8toUTF16(src, dst)\r\n\r\nDecodes and converts UTF8 bytes to UTF16 characters.\r\n\r\n| Parameter       | Type            | Description\r\n|-----------------|-----------------|---------------\r\n| src             | *function():(number &#124; null)* | Bytes source as a function returning the next byte respectively `null` if there are no more bytes left. \r\n| dst             | *function(number)* | Characters destination as a function successively called with each converted char code. \r\n| **@throws**     | *RangeError*    | If a starting byte is invalid in UTF8 \r\n| **@throws**     | *Error*         | If the last sequence is truncated. Has an array property `bytes` holding the remaining bytes. \r\n\r\n### assertByte(b)\r\n\r\nAsserts a byte value.\r\n\r\n| Parameter       | Type            | Description\r\n|-----------------|-----------------|---------------\r\n| b               | *number*        | 8bit byte value \r\n| **@returns**    | *number*        | Valid byte value \r\n| **@throws**     | *TypeError*     | If the byte value is invalid \r\n| **@throws**     | *RangeError*    | If the byte value is out of range \r\n\r\n### assertCharCode(c)\r\n\r\nAsserts an UTF16 char code.\r\n\r\n| Parameter       | Type            | Description\r\n|-----------------|-----------------|---------------\r\n| c               | *number*        | UTF16 char code \r\n| **@returns**    | *number*        | Valid char code \r\n| **@throws**     | *TypeError*     | If the char code is invalid \r\n| **@throws**     | *RangeError*    | If the char code is out of range \r\n\r\n### assertCodePoint(cp)\r\n\r\nAsserts an UTF8 code point.\r\n\r\n| Parameter       | Type            | Description\r\n|-----------------|-----------------|---------------\r\n| cp              | *number*        | UTF8 code point \r\n| **@returns**    | *number*        | Valid code point \r\n| **@throws**     | *TypeError*     | If the code point is invalid \r\n| **@throws**     | *RangeError*    | If the code point is out of range \r\n\r\n### calculateCodePoint(cp)\r\n\r\nCalculates the byte length of an UTF8 code point.\r\n\r\n| Parameter       | Type            | Description\r\n|-----------------|-----------------|---------------\r\n| cp              | *number*        | UTF8 code point \r\n| **@returns**    | *number*        | Byte length \r\n\r\n### calculateUTF8(src)\r\n\r\nCalculates the number of UTF8 bytes required to store UTF8 code points.\r\n\r\n| Parameter       | Type            | Description\r\n|-----------------|-----------------|---------------\r\n| src             | *function():(number &#124; null)* | Code points source as a function returning the next code point respectively `null` if there are no more code points left. \r\n| **@returns**    | *number*        | The number of UTF8 bytes required \r\n\r\n### calculateUTF16asUTF8(src)\r\n\r\nCalculates the number of UTF8 code points respectively UTF8 bytes required to store UTF16 char codes.\r\n\r\n| Parameter       | Type            | Description\r\n|-----------------|-----------------|---------------\r\n| src             | *function():(number &#124; null)* | Characters source as a function returning the next char code respectively `null` if there are no more characters left. \r\n| **@returns**    | *!Array.&lt;number&gt;* | The number of UTF8 code points at index 0 and the number of UTF8 bytes required at index 1. \r\n\r\n### arraySource(a)\r\n\r\nCreates a source function for an array.\r\n\r\n| Parameter       | Type            | Description\r\n|-----------------|-----------------|---------------\r\n| a               | *!Array.&lt;number&gt;* | Array to read from \r\n| **@returns**    | *function():(number &#124; null)* | Source function returning the next value respectively `null` if there are no more values left. \r\n| **@throws**     | *TypeError*     | If the argument is invalid \r\n\r\n### arrayDestination(a)\r\n\r\nCreates a destination function for an array.\r\n\r\n| Parameter       | Type            | Description\r\n|-----------------|-----------------|---------------\r\n| a               | *!Array.&lt;number&gt;* | Array to write to \r\n| **@returns**    | *function(number)* | Destination function successively called with the next value. \r\n| **@throws**     | *TypeError*     | If the argument is invalid \r\n\r\n### stringSource(s)\r\n\r\nCreates a source function for a string.\r\n\r\n| Parameter       | Type            | Description\r\n|-----------------|-----------------|---------------\r\n| s               | *string*        | String to read from \r\n| **@returns**    | *function():(number &#124; null)* | Source function returning the next char code respectively `null` if there are no more characters left. \r\n| **@throws**     | *TypeError*     | If the argument is invalid \r\n\r\n### stringDestination()\r\n\r\nCreates a destination function for a string.\r\n\r\n| Parameter       | Type            | Description\r\n|-----------------|-----------------|---------------\r\n| **@returns**    | *function(number=):(undefined &#124; string)* | Destination function successively called with the next char code. Returns the final string when called without arguments. \r\n\r\n### fromCodePoint(var_args)\r\n\r\nA polyfill for `String.fromCodePoint`.\r\n\r\n| Parameter       | Type            | Description\r\n|-----------------|-----------------|---------------\r\n| var_args        | *...number*     | Code points \r\n| **@returns**    | *string*        | JavaScript string \r\n| **@throws**     | *TypeError*     | If arguments are invalid or a code point is invalid \r\n| **@throws**     | *RangeError*    | If a code point is out of range \r\n\r\n### codePointAt(s, i)\r\n\r\nA polyfill for `String#codePointAt`.\r\n\r\n| Parameter       | Type            | Description\r\n|-----------------|-----------------|---------------\r\n| s               | *string*        | JavaScript string \r\n| i               | *number*        | Index \r\n| **@returns**    | *number &#124; undefined* | Code point or `undefined` if `i` is out of range \r\n| **@throws**     | *TypeError*     | If arguments are invalid \r\n\r\n### polyfill(override=)\r\n\r\nInstalls utfx as a polyfill for `String.fromCodePoint` and `String#codePointAt` if not implemented.\r\n\r\n| Parameter       | Type            | Description\r\n|-----------------|-----------------|---------------\r\n| override        | *boolean*       | Overrides an existing implementation if `true`, defaults to `false` \r\n| **@returns**    | *!Object.&lt;string,*&gt;* | utfx namespace \r\n\r\nUsage\r\n-----\r\n* **node.js**: `npm install utfx`   \r\n   \r\n   ```js\r\n   var utfx = require(\"utfx\");\r\n   ...\r\n   ```\r\n\r\n* **Browser**: `<script src=\"/path/to/utfx.min.js\"></script>`   \r\n   \r\n   ```js\r\n   var utfx = dcodeIO.utfx;\r\n   ...\r\n   ```\r\n   \r\n* **Require.js/AMD**   \r\n   \r\n   ```js\r\n   require.config({\r\n       \"paths\": {\r\n           \"utfx\": \"/path/to/utfx.min.js\"\r\n       }\r\n   });\r\n   require([\"utfx\"], function(utfx) {\r\n       ...\r\n   }\r\n   ```\r\n\r\nDownloads\r\n---------\r\n* [Distributions](https://github.com/dcodeIO/utfx/tree/master/dist)\r\n\r\nFAQ and examples\r\n----------------\r\n* [Wiki](https://github.com/dcodeIO/utfx/wiki)\r\n\r\nLicense\r\n-------\r\nApache License, Version 2.0\r\n","maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"time":{"modified":"2022-06-28T07:09:48.177Z","created":"2014-06-25T18:33:11.981Z","0.1.0":"2014-06-25T18:33:11.981Z","0.2.0":"2014-06-25T19:47:23.769Z","0.3.0":"2014-06-25T20:10:16.003Z","0.4.0":"2014-06-25T20:28:44.880Z","0.5.0":"2014-06-25T22:18:54.663Z","0.6.0":"2014-06-25T23:10:24.408Z","0.6.1":"2014-06-25T23:14:21.062Z","0.7.1":"2014-06-26T14:02:59.672Z","0.7.2":"2014-06-26T14:59:04.584Z","0.8.0":"2014-06-26T22:14:10.819Z","0.8.1":"2014-06-26T23:35:24.384Z","0.9.0":"2014-06-27T00:28:55.312Z","0.9.1":"2014-06-27T15:39:58.440Z","0.10.0":"2014-06-27T20:04:20.524Z","0.11.0":"2014-06-27T20:16:45.987Z","0.11.1":"2014-06-27T20:19:38.235Z","0.12.0":"2014-06-27T20:27:33.756Z","0.12.1":"2014-06-27T20:43:04.498Z","1.0.0":"2014-06-28T16:08:34.451Z","1.0.1":"2015-06-25T14:22:16.348Z"},"homepage":"https://github.com/dcodeIO/utfx","keywords":["charset","encoding","unicode","utf8","utf16"],"repository":{"type":"git","url":"https://github.com/dcodeIO/utfx.git"},"author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"bugs":{"url":"https://github.com/dcodeIO/utfx/issues"},"license":"Apache-2.0","readmeFilename":"README.md"}