{"_id":"array-buffer-from-string","_rev":"403781","name":"array-buffer-from-string","description":"Create an ArrayBuffer with the [raw bytes][javascript-encoding] from a String.","dist-tags":{"latest":"0.1.0"},"maintainers":[{"name":"linusu","email":""}],"time":{"modified":"2021-08-04T04:41:31.000Z","created":"2016-08-15T21:03:46.253Z","0.1.0":"2016-08-15T21:03:46.253Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/linusu/array-buffer-from-string.git"},"versions":{"0.1.0":{"name":"array-buffer-from-string","version":"0.1.0","license":"MIT","repository":{"type":"git","url":"git+https://github.com/linusu/array-buffer-from-string.git"},"scripts":{"test":"standard && node test"},"devDependencies":{"arraybuffer-equal":"^1.0.4","hex-to-array-buffer":"^0.1.0","standard":"^7.1.2"},"gitHead":"f46612ac629594cb67e4101ef173568f52db22bf","description":"Create an ArrayBuffer with the [raw bytes][javascript-encoding] from a String.","bugs":{"url":"https://github.com/linusu/array-buffer-from-string/issues"},"homepage":"https://github.com/linusu/array-buffer-from-string#readme","_id":"array-buffer-from-string@0.1.0","_shasum":"3b14351f86149d84efc612c5ada7ed85169d7b07","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"linusu","email":"linus@folkdatorn.se"},"dist":{"shasum":"3b14351f86149d84efc612c5ada7ed85169d7b07","size":1163,"noattachment":false,"key":"/array-buffer-from-string/-/array-buffer-from-string-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/array-buffer-from-string/download/array-buffer-from-string-0.1.0.tgz"},"maintainers":[{"name":"linusu","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/array-buffer-from-string-0.1.0.tgz_1471295024273_0.5401453715749085"},"directories":{},"publish_time":1471295026253,"_cnpm_publish_time":1471295026253,"_hasShrinkwrap":false}},"readme":"# ArrayBuffer from String\n\nCreate an ArrayBuffer with the [raw bytes][javascript-encoding] from a String.\n\n## Installation\n\n```sh\nnpm install --save array-buffer-from-string\n```\n\n## Usage\n\n```js\nconst arrayBufferFromString = require('array-buffer-from-string')\n\nconsole.log(arrayBufferFromString('Hello world!'))\n//=> ArrayBuffer { byteLength: 24 }\n```\n\n## API\n\n### arrayBufferFromString(input: string) => ArrayBuffer\n\nCreate an ArrayBuffer with the [raw bytes][javascript-encoding] from a String.\n\n[javascript-encoding]: https://mathiasbynens.be/notes/javascript-encoding\n\n## See also\n\n[hex-to-array-buffer](https://github.com/LinusU/hex-to-array-buffer) - Turn a string of hexadecimal characters into an `ArrayBuffer`\n","_attachments":{},"homepage":"https://github.com/linusu/array-buffer-from-string#readme","bugs":{"url":"https://github.com/linusu/array-buffer-from-string/issues"},"license":"MIT"}