{"name":"encode-utf8","version":"1.0.1","license":"MIT","repository":{"type":"git","url":"git+https://github.com/LinusU/encode-utf8.git"},"scripts":{"test":"standard && mocha"},"devDependencies":{"mocha":"^4.0.1","standard":"^10.0.3"},"gitHead":"89e3345bbca84408632acb66acfdde4d21bba048","description":"Turn a string into an ArrayBuffer by using the UTF8 encoding.","bugs":{"url":"https://github.com/LinusU/encode-utf8/issues"},"homepage":"https://github.com/LinusU/encode-utf8#readme","_id":"encode-utf8@1.0.1","_npmVersion":"5.4.2","_nodeVersion":"8.8.0","_npmUser":{"name":"linusu","email":"linus@folkdatorn.se"},"dist":{"integrity":"sha512-F9nrr3tYt0xVSFS8JEwBLcIg8SEX6p5wPPghnMGMgaYkUuyG7S0CiLlViHBK7PJwlWvM3xlT4wFh46mTBpuaPw==","shasum":"7c56875c260b69609e7f61eee6b968372bfb4a60","tarball":"http://registry-npm.ywwl.com/encode-utf8/download/encode-utf8-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvENLIooTXwRBKb5P+NTS8H0Nj2pN4OMnnARfPllkSEwIhANqGTQsvHJ9BQSMeydwRLvSdNYp1FsPhUZD8Psf9nSam"}],"size":1808,"noattachment":false,"key":"/encode-utf8/-/encode-utf8-1.0.1.tgz"},"maintainers":[{"name":"linusu","email":"linus@folkdatorn.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/encode-utf8-1.0.1.tgz_1509541391061_0.8746850253082812"},"directories":{},"readme":"# Encode UTF8\n\nTurn a string into an ArrayBuffer by using the UTF8 encoding.\n\n## Installation\n\n```js\nnpm install --save encode-utf8\n```\n\n## Usage\n\n```js\nimport encodeUtf8 from 'encode-utf8'\n\nconsole.log(encodeUtf8('Hello, World!'))\n//=> ArrayBuffer { byteLength: 13 }\n\nconsole.log(encodeUtf8('🐵 🙈 🙉 🙊'))\n//=> ArrayBuffer { byteLength: 19 }\n```\n\n## API\n\n### `encodeUtf8(input)`\n\n- `input` (`string`, required)\n- returns `ArrayBuffer` - an ArrayBuffer with the `input` string represented as UTF8 encoded data\n","publish_time":1509541392021,"_cnpm_publish_time":1509541392021,"dist-tags":{"latest":"2.0.0"}}