{"_id":"obtain-unicode","_rev":"16-2feace47c52f82603f2beceb027fa60b","name":"obtain-unicode","description":"implementation of convert a DOMString to a sequence of Unicode characters at http://www.w3.org/TR/WebIDL/#dfn-obtain-unicode and shim for String.fromCodePoint()","dist-tags":{"latest":"0.0.5"},"versions":{"0.0.0":{"name":"obtain-unicode","version":"0.0.0","description":"implementation of convert a DOMString to a sequence of Unicode characters at http://www.w3.org/TR/WebIDL/#dfn-obtain-unicode","main":"obtain-unicode.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/jxck/obtain-unicode"},"keywords":["encode","encoding","unicode","domstring","string","whatwg","w3c"],"author":{"name":"Jxck"},"license":"MIT","bugs":{"url":"https://github.com/jxck/obtain-unicode/issues"},"homepage":"https://github.com/jxck/obtain-unicode","_id":"obtain-unicode@0.0.0","_shasum":"927f686d1e202304ff999d79868a497bf15cfcc2","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"Jxck","email":"block.rxckin.beats@gmail.com"},"maintainers":[{"name":"Jxck","email":"block.rxckin.beats@gmail.com"}],"dist":{"shasum":"927f686d1e202304ff999d79868a497bf15cfcc2","tarball":"https://registry.npmjs.org/obtain-unicode/-/obtain-unicode-0.0.0.tgz","integrity":"sha512-p6gxb/j8Ce2CdZsoG68bCC3PLDbx1XF1D9UD6E8P2NeJ/sM9ORMw5D62RNFxTaOqpWRqLtQ5QGlDoy0cz71+Nw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+znkxfmHVQVqgEIy3EIkXu6X9QbItJ5/tQKL8MXw0ZwIhAK1gQX0jLGVO25mdCHkwpF2mgcoRtJTm82QWAHnq7qdY"}]}},"0.0.1":{"name":"obtain-unicode","description":"implementation of convert a DOMString to a sequence of Unicode characters at http://www.w3.org/TR/WebIDL/#dfn-obtain-unicode and shim for String.fromCodePoint()","version":"0.0.1","author":{"name":"Jxck"},"bugs":{"url":"https://github.com/jxck/obtain-unicode/issues"},"homepage":"https://github.com/jxck/obtain-unicode","keywords":["encode","encoding","unicode","domstring","string","whatwg","w3c"],"license":"MIT","main":"obtain-unicode.js","repository":{"type":"git","url":"https://github.com/jxck/obtain-unicode"},"scripts":{"test":"node test/test.js"},"gitHead":"c57ad1bfe2d6d20f56e0af5d447c326659d8e688","_id":"obtain-unicode@0.0.1","_shasum":"e1973128f7934b68b1b8113449925e5da1e8d4d6","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"jxck","email":"block.rxckin.beats@gmail.com"},"maintainers":[{"name":"jxck","email":"block.rxckin.beats@gmail.com"}],"dist":{"shasum":"e1973128f7934b68b1b8113449925e5da1e8d4d6","tarball":"https://registry.npmjs.org/obtain-unicode/-/obtain-unicode-0.0.1.tgz","integrity":"sha512-bDWA2KaaeVE6WudtUtu8VFGJrZrO2BwbV7PV4ORQwE7PkmHYTWOQHhcsq7MoG/IyHigGx9ymBRBIZvhHCoLDVA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAVCLTYuaAJHcVnpuo7c4sbXVw9AMgHy1Rjn4abYy3etAiEAlRrskFEDnU0NauqUsbNvIEeG5kRc2mwAHpQT4nn9At0="}]}},"0.0.2":{"name":"obtain-unicode","description":"implementation of convert a DOMString to a sequence of Unicode characters at http://www.w3.org/TR/WebIDL/#dfn-obtain-unicode and shim for String.fromCodePoint()","version":"0.0.2","author":{"name":"Jxck"},"bugs":{"url":"https://github.com/jxck/obtain-unicode/issues"},"homepage":"https://github.com/jxck/obtain-unicode","keywords":["encode","encoding","unicode","domstring","string","whatwg","w3c"],"license":"MIT","main":"obtain-unicode.js","repository":{"type":"git","url":"https://github.com/jxck/obtain-unicode"},"scripts":{"test":"node test/test.js"},"gitHead":"9bb554fe5d4af63eee42c3d62501fbb64ae0e130","_id":"obtain-unicode@0.0.2","_shasum":"a4c388e8d8ece1ca8e7bc84ac0b67de0f4bbf904","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"jxck","email":"block.rxckin.beats@gmail.com"},"maintainers":[{"name":"jxck","email":"block.rxckin.beats@gmail.com"}],"dist":{"shasum":"a4c388e8d8ece1ca8e7bc84ac0b67de0f4bbf904","tarball":"https://registry.npmjs.org/obtain-unicode/-/obtain-unicode-0.0.2.tgz","integrity":"sha512-9EBpan3txXIAbBOaSERM2HU4GZNYIoXRiqZrZb7vENaowQbh7qTC/TCMQH1wq3NTmBGzMunl699OIPxHtyuG8Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFoUGfGVvlYdBjOZsuONrF0ea0nV4ZJCeeEOoAWsJC7OAiB9f1VKtzk/ET3V6cWtOHw753uNAzNii+7CmB8EsFNW1Q=="}]}},"0.0.3":{"name":"obtain-unicode","description":"implementation of convert a DOMString to a sequence of Unicode characters at http://www.w3.org/TR/WebIDL/#dfn-obtain-unicode and shim for String.fromCodePoint()","version":"0.0.3","author":{"name":"Jxck"},"bugs":{"url":"https://github.com/jxck/obtain-unicode/issues"},"devDependencies":{"bower":"^1.3.12"},"homepage":"https://github.com/jxck/obtain-unicode","keywords":["encode","encoding","unicode","domstring","string","whatwg","w3c"],"license":"MIT","main":"obtain-unicode.js","repository":{"type":"git","url":"https://github.com/jxck/obtain-unicode"},"scripts":{"test":"node test/test.js"},"gitHead":"e9509817f08b8b7e54da8242bac987b56803b299","_id":"obtain-unicode@0.0.3","_shasum":"2cf783e27cbf61fa4bdb561599e49262a369bb63","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"jxck","email":"block.rxckin.beats@gmail.com"},"maintainers":[{"name":"jxck","email":"block.rxckin.beats@gmail.com"}],"dist":{"shasum":"2cf783e27cbf61fa4bdb561599e49262a369bb63","tarball":"https://registry.npmjs.org/obtain-unicode/-/obtain-unicode-0.0.3.tgz","integrity":"sha512-lGVW5tV8GLwOnOoxDbHs7iSFRj2MXRi1Im3dDVa/Bx6OZqW/XlSBJv+ggQ8BT8V+Jm5/mmB+k9A6b1DX/RtL+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXjkNOoUfHi+/AoPVD0q9M2oqQ0m54H2JPAip2/E6logIgdkvG0kJIq1Sk9fOC6XaVY9GYUrOfWNmGfPkGyrulDcw="}]}},"0.0.4":{"name":"obtain-unicode","description":"implementation of convert a DOMString to a sequence of Unicode characters at http://www.w3.org/TR/WebIDL/#dfn-obtain-unicode and shim for String.fromCodePoint()","version":"0.0.4","author":{"name":"Jxck"},"bugs":{"url":"https://github.com/jxck/obtain-unicode/issues"},"devDependencies":{"bower":"^1.3.12"},"homepage":"https://github.com/jxck/obtain-unicode","keywords":["encode","encoding","unicode","domstring","string","whatwg","w3c"],"license":"MIT","main":"obtain-unicode.js","repository":{"type":"git","url":"https://github.com/jxck/obtain-unicode"},"scripts":{"test":"node test/test.js"},"gitHead":"97ebe92268f6ef38e079d73987dc00a55ff63b0c","_id":"obtain-unicode@0.0.4","_shasum":"6a89098fb4cf3fc0e9f308bc0f7ae66448baab0b","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"jxck","email":"block.rxckin.beats@gmail.com"},"maintainers":[{"name":"jxck","email":"block.rxckin.beats@gmail.com"}],"dist":{"shasum":"6a89098fb4cf3fc0e9f308bc0f7ae66448baab0b","tarball":"https://registry.npmjs.org/obtain-unicode/-/obtain-unicode-0.0.4.tgz","integrity":"sha512-+nW51y6N14z3pH2lsaZ7gAWKF/+bbARtuNH5Zh5vaocJHH7Q7VzZC0bskzXIiu0rrQdLuc/4M4B5fHp3bjC/fg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICLUrLjS7apwflI8gVkWi2zhNpvnKtxHzZHvuR6OzmVlAiEAjxKX8Mi6bpahwn9uMsLcubOly7QkQHuyA0JIeKKOD8c="}]}},"0.0.5":{"name":"obtain-unicode","description":"implementation of convert a DOMString to a sequence of Unicode characters at http://www.w3.org/TR/WebIDL/#dfn-obtain-unicode and shim for String.fromCodePoint()","version":"0.0.5","author":{"name":"Jxck"},"bugs":{"url":"https://github.com/jxck/obtain-unicode/issues"},"devDependencies":{"bower":"^1.3.12"},"homepage":"https://github.com/jxck/obtain-unicode","keywords":["encode","encoding","unicode","domstring","string","whatwg","w3c"],"license":"MIT","main":"obtain-unicode.js","repository":{"type":"git","url":"https://github.com/jxck/obtain-unicode"},"scripts":{"test":"node test/test.js"},"gitHead":"149dd4da46bf2f91055bcb00cd87a91a78d59e70","_id":"obtain-unicode@0.0.5","_shasum":"655f337a8f135280495d77a60efc601f9af5d5dc","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"jxck","email":"block.rxckin.beats@gmail.com"},"maintainers":[{"name":"jxck","email":"block.rxckin.beats@gmail.com"}],"dist":{"shasum":"655f337a8f135280495d77a60efc601f9af5d5dc","tarball":"https://registry.npmjs.org/obtain-unicode/-/obtain-unicode-0.0.5.tgz","integrity":"sha512-0BQHvF6VCYEdXiRYlxRo5X/2fKFau/eymrhs453IA8W610+nEelS5mhvanWeiSnSyKfw/hjhB4MlogxannjQVA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFaIld2qNcIby+7eTQaxz9/q6eQU8I522hAr23Y5MgyjAiEAixmP+HzDTMYvQEIGRC6oTIr8cVBaLV53PCWsViV7pCI="}]}}},"readme":"# Isomorphic Unicode Codepoint to/from String converter\n\n## about\n\nimplementation of Obtain Unicode Algorithm from DOMString at\nhttp://www.w3.org/TR/WebIDL/#dfn-obtain-unicode\n\nalso polyfill of String.fromCodePoint() for convert codepoints to string.\nhttps://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/String/fromCodePoint#Polyfill\n\n\n## install\n\n```sh\n$ npm install obtain-unicode\n```\n\n## usage\n\nworks in node and browser.\nIsomorphic !! no Browserify.\n\n```typescript\nvar obtainUnicode =  obtainUnicode || require('../obtain-unicode').obtainUnicode;\n\nconsole.log(obtainUnicode('beer!🍻'));\n// [98, 101, 101, 114, 33, 127867]\nconsole.log(String.fromCodePoint(98, 101, 101, 114, 33, 127867));\n// \"beer!🍻\n```\n\n## test\n\n```sh\n$ npm test\n```\n\nand also open test/index.html in your browser and see console.\n\n## for TypeScript\n\nuse [obtain-unicode.d.ts](./obtain-unicode.d.ts)\n\nand also add this type declare to your code.\n(because d.ts can't include this)\n\n```typescript\n// polyfill for String.fromCodePoint\ndeclare var String: {\n  new (value?: any): String;\n  (value?: any): string;\n  prototype: String;\n  fromCharCode(...codes: number[]): string;\n  /**\n   * Pollyfill of String.fromCodePoint\n   */\n  fromCodePoint(...codePoints: number[]): string;\n}\n```\n\n## License\n\nThe MIT License (MIT)\nCopyright (c) 2015 Jxck\n","maintainers":[{"name":"jxck","email":"block.rxckin.beats@gmail.com"}],"time":{"modified":"2022-06-22T18:02:07.645Z","created":"2015-01-22T15:31:03.273Z","0.0.0":"2015-01-22T15:31:03.273Z","0.0.1":"2015-01-26T13:04:43.679Z","0.0.2":"2015-01-26T14:23:40.381Z","0.0.3":"2015-02-02T02:59:53.982Z","0.0.4":"2015-02-02T03:09:59.964Z","0.0.5":"2015-02-03T01:04:35.510Z"},"homepage":"https://github.com/jxck/obtain-unicode","keywords":["encode","encoding","unicode","domstring","string","whatwg","w3c"],"repository":{"type":"git","url":"https://github.com/jxck/obtain-unicode"},"author":{"name":"Jxck"},"bugs":{"url":"https://github.com/jxck/obtain-unicode/issues"},"license":"MIT","readmeFilename":"README.md"}