{"_id":"arraybuffer-to-string","_rev":"6-7b4712f133fe0d904238eabf488f1da4","name":"arraybuffer-to-string","description":"Convert ArrayBuffer to string","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"arraybuffer-to-string","version":"1.0.0","description":"Convert ArrayBuffer to string","main":"index.js","scripts":{"test":"node test.js"},"browser":"./browser.js","repository":{"type":"git","url":"git+https://github.com/dfcreative/string-to-arraybuffer.git"},"keywords":["arraybuffer","array-buffer","array","buffer","string","base64","atob","btoa","datauri"],"author":{"name":"Dima Yv","email":"dfcreative@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dfcreative/string-to-arraybuffer/issues"},"homepage":"https://github.com/dfcreative/string-to-arraybuffer#readme","devDependencies":{"buffer-to-arraybuffer":"0.0.4","is-browser":"^2.0.1","string-to-arraybuffer":"^1.0.0","tape":"^4.7.0"},"gitHead":"4dc40779db8fbfc40dec21cb2bdae1a3b0fb5fb3","_id":"arraybuffer-to-string@1.0.0","_shasum":"4cebf0e3683c06610c89c2bc79b7eaac34cdb8e2","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.1.2","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"dist":{"shasum":"4cebf0e3683c06610c89c2bc79b7eaac34cdb8e2","tarball":"https://registry.npmjs.org/arraybuffer-to-string/-/arraybuffer-to-string-1.0.0.tgz","integrity":"sha512-L7YoOmfLy64GuXzpvl5UmI5k7kG9OsvjTvopY/P1EeWTUYbg1uqiKJIUXiumYfB9rS1nLN2Vl1KMxmcZiXX5dA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPsAXwpsG7gG7gWKXlBs8RVfrgFKjVSAOtnP+lSQ04iAIhAKrw0RfwDCZdiV78MVuUzmR9kobvXqYcpEyX3ebh8MN+"}]},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/arraybuffer-to-string-1.0.0.tgz_1498606477123_0.02890762477181852"},"directories":{}},"1.0.1":{"name":"arraybuffer-to-string","version":"1.0.1","description":"Convert ArrayBuffer to string","main":"index.js","scripts":{"test":"node test.js"},"browser":"./browser.js","repository":{"type":"git","url":"git+https://github.com/dfcreative/string-to-arraybuffer.git"},"keywords":["arraybuffer","array-buffer","array","buffer","string","base64","atob","btoa","datauri"],"author":{"name":"Dima Yv","email":"dfcreative@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dfcreative/string-to-arraybuffer/issues"},"homepage":"https://github.com/dfcreative/string-to-arraybuffer#readme","devDependencies":{"buffer-to-arraybuffer":"0.0.4","is-browser":"^2.0.1","string-to-arraybuffer":"^1.0.0","tape":"^4.7.0"},"gitHead":"fbd8c365fa7b2babe5e11e75930aabfecfa769d0","_id":"arraybuffer-to-string@1.0.1","_shasum":"57abcb5e4c4948e4ed104a3119038a36a3d4fd94","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.1.2","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"dist":{"shasum":"57abcb5e4c4948e4ed104a3119038a36a3d4fd94","tarball":"https://registry.npmjs.org/arraybuffer-to-string/-/arraybuffer-to-string-1.0.1.tgz","integrity":"sha512-r87n9wfWwZPf4J5V16hptGuWSTYym6AmIpbTZ3IwYWII7T6N8+w0bc/9JvD2bMYk1k9+URjdv1KmiNEo5KfrwQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCikXXA4Hs4c4r+sfJj8TQ794cOy7Ma4kPGLJOuF1X07wIgJle8iJuz1yL0oLoW/Vi4MFPiKspM4qLXTUmqYwmxQHA="}]},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/arraybuffer-to-string-1.0.1.tgz_1498607244712_0.22945319837890565"},"directories":{}},"1.0.2":{"name":"arraybuffer-to-string","version":"1.0.2","description":"Convert ArrayBuffer to string","main":"index.js","scripts":{"test":"node test.js"},"browser":"./browser.js","repository":{"type":"git","url":"git+https://github.com/dfcreative/arraybuffer-to-string.git"},"keywords":["arraybuffer","array-buffer","array","buffer","string","base64","atob","btoa","datauri"],"author":{"name":"Dima Yv","email":"dfcreative@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dfcreative/arraybuffer-to-string/issues"},"homepage":"https://github.com/dfcreative/arraybuffer-to-string#readme","devDependencies":{"buffer-to-arraybuffer":"0.0.4","is-browser":"^2.0.1","string-to-arraybuffer":"^1.0.0","tape":"^4.7.0"},"gitHead":"34ed6a041eadad44463829319ce0354ba4c16d8d","_id":"arraybuffer-to-string@1.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.1.2","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"dist":{"integrity":"sha512-WbIYlLVmvIAyUBdQRRuyGOJRriOQy9OAsWcyURmsRQp9+g647hdMSS2VFKXbJLVw0daUu06hqwLXm9etVrXI9A==","shasum":"c373aa7bb0e6844d9a2bc9654c8889a9570a26e2","tarball":"https://registry.npmjs.org/arraybuffer-to-string/-/arraybuffer-to-string-1.0.2.tgz","fileCount":7,"unpackedSize":13271,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQT94UOYmnt2oIbRoEUSyD8PFDQmYEkOycZxqAizW6/wIgSJfGkpCEkNEEQ7Ysh4h/5rwOwx5W87qKOvuxh0jYY0M="}]},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/arraybuffer-to-string_1.0.2_1519351596413_0.41887218249922875"},"_hasShrinkwrap":false}},"readme":"# arraybuffer-to-string [![unstable](https://img.shields.io/badge/stability-unstable-orange.svg)](http://github.com/badges/stability-badges) [![Build Status](https://img.shields.io/travis/dfcreative/arraybuffer-to-string.svg)](https://travis-ci.org/dfcreative/arraybuffer-to-string)\r\n\r\nConvert _ArrayBuffer_ to string with optional encoding.\r\n\r\n[![npm install arraybuffer-to-string](https://nodei.co/npm/arraybuffer-to-string.png?mini=true)](https://npmjs.org/package/arraybuffer-to-string/)\r\n\r\n```js\r\nvar ab2str = require('arraybuffer-to-string')\r\n\r\nvar uint8 = new Uint8Array([ 72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33 ])\r\n\r\nab2str(uint8) // 'Hello World!'\r\nab2str(uint8, 'base64') // 'SGVsbG8gV29ybGQh'\r\nab2str(uint8, 'hex') // '48656c6c6f20576f726c6421'\r\nab2str(uint8, 'iso-8859-2') // 'Hello World!'\r\n```\r\n\r\n### var str = arrayBufferToString(buffer, encoding='utf8')\r\n\r\nConvert ArrayBuffer/ArrayBufferView/Array `buffer` to string with defined encoding. Available encoding: `utf8`, `binary`, `base64`, `hex`, `ascii`, `latin1`, `ucs2`, `utf16` and [many others](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/encoding).\r\n\r\nNote: in browser it relies on [TextDecoder API](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/decode), so if you are dealing with charsets other than `utf8`, `ascii`, `binary` or `base64` in old browsers, please include [encoding polyfill](https://github.com/inexorabletash/text-encoding).\r\n\r\n### Related\r\n\r\n* [string-to-arraybuffer](https://github.com/dfcreative/string-to-arraybuffer) − convert string to arraybuffer.\r\n* [create-data-uri](https://www.npmjs.com/package/create-data-uri) − convert binary data to datauri string.\r\n","maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"}],"time":{"modified":"2022-06-13T03:29:14.334Z","created":"2017-06-27T23:34:38.115Z","1.0.0":"2017-06-27T23:34:38.115Z","1.0.1":"2017-06-27T23:47:25.652Z","1.0.2":"2018-02-23T02:06:36.466Z"},"homepage":"https://github.com/dfcreative/arraybuffer-to-string#readme","keywords":["arraybuffer","array-buffer","array","buffer","string","base64","atob","btoa","datauri"],"repository":{"type":"git","url":"git+https://github.com/dfcreative/arraybuffer-to-string.git"},"author":{"name":"Dima Yv","email":"dfcreative@gmail.com"},"bugs":{"url":"https://github.com/dfcreative/arraybuffer-to-string/issues"},"license":"MIT","readmeFilename":"readme.md"}