{"_id":"to-array-buffer","_rev":"4208767","name":"to-array-buffer","description":"Convert any binary data to ArrayBuffer","dist-tags":{"latest":"3.2.0"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"}],"time":{"modified":"2026-03-04T17:04:36.000Z","created":"2015-12-30T05:57:21.551Z","3.2.0":"2019-01-06T14:27:37.742Z","3.1.1":"2018-11-13T03:48:00.265Z","3.1.0":"2018-11-13T00:35:43.334Z","3.0.0":"2018-11-12T01:05:28.897Z","2.2.2":"2018-11-11T23:13:11.172Z","2.2.1":"2018-11-11T21:33:27.113Z","2.2.0":"2018-11-11T21:13:24.979Z","2.1.0":"2017-06-27T21:00:23.039Z","2.0.1":"2017-06-19T04:28:34.332Z","2.0.0":"2017-06-17T17:20:20.783Z","1.2.4":"2017-04-12T17:35:06.248Z","1.2.3":"2017-04-07T19:44:20.754Z","1.2.2":"2017-03-18T23:16:53.088Z","1.2.1":"2017-03-18T17:16:21.187Z","1.2.0":"2015-12-30T18:14:20.348Z","1.1.0":"2015-12-30T17:55:01.939Z","1.0.0":"2015-12-30T05:57:21.551Z"},"users":{},"author":{"name":"Dima Yv","email":"dfcreative@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/dy/to-array-buffer.git"},"versions":{"3.2.0":{"name":"to-array-buffer","version":"3.2.0","description":"Convert any binary data to ArrayBuffer","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/dy/to-array-buffer.git"},"keywords":["arraybuffer","array-buffer","array","buffer","binary","load","raw","load raw","data","blob","file"],"author":{"name":"Dima Yv","email":"dfcreative@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dy/to-array-buffer/issues"},"homepage":"https://github.com/dy/to-array-buffer#readme","dependencies":{"flatten-vertex-data":"^1.0.2","is-blob":"^2.0.1","string-to-arraybuffer":"^1.0.0"},"devDependencies":{"buffer-to-arraybuffer":"^0.0.4","data-uri-to-buffer":"^1.0.0","is-browser":"^2.0.1","ndarray":"^1.0.18","tape":"^4.6.3"},"gitHead":"5759e9b0b362986edf0f2106a07585f89d544189","_id":"to-array-buffer@3.2.0","_npmVersion":"6.4.1","_nodeVersion":"8.11.1","_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"dist":{"shasum":"cb684dd691a7368c3b249c2348d75227f7d4dbb4","size":3598,"noattachment":false,"key":"/to-array-buffer/-/to-array-buffer-3.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-array-buffer/download/to-array-buffer-3.2.0.tgz"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/to-array-buffer_3.2.0_1546784857605_0.8039726052946543"},"_hasShrinkwrap":false,"publish_time":1546784857742,"_cnpm_publish_time":1546784857742,"_cnpmcore_publish_time":"2021-12-17T00:39:06.498Z"},"3.1.1":{"name":"to-array-buffer","version":"3.1.1","description":"Convert any binary data to ArrayBuffer","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/dy/to-array-buffer.git"},"keywords":["arraybuffer","array-buffer","array","buffer","binary","load","raw","load raw","data","blob","file"],"author":{"name":"Dima Yv","email":"dfcreative@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dy/to-array-buffer/issues"},"homepage":"https://github.com/dy/to-array-buffer#readme","dependencies":{"flatten-vertex-data":"^1.0.2","is-blob":"^2.0.1","string-to-arraybuffer":"^1.0.0"},"devDependencies":{"buffer-to-arraybuffer":"^0.0.4","data-uri-to-buffer":"^1.0.0","is-browser":"^2.0.1","ndarray":"^1.0.18","tape":"^4.6.3"},"gitHead":"6782a81729858154efdcaee6c0ea8d699650e684","_id":"to-array-buffer@3.1.1","_npmVersion":"6.4.1","_nodeVersion":"8.11.1","_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"dist":{"shasum":"903146605813c6fabf33ec6a71dc5a5b2ebd89b4","size":3304,"noattachment":false,"key":"/to-array-buffer/-/to-array-buffer-3.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-array-buffer/download/to-array-buffer-3.1.1.tgz"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/to-array-buffer_3.1.1_1542080880152_0.0012792084761297229"},"_hasShrinkwrap":false,"publish_time":1542080880265,"_cnpm_publish_time":1542080880265,"_cnpmcore_publish_time":"2021-12-17T00:39:06.892Z"},"3.1.0":{"name":"to-array-buffer","version":"3.1.0","description":"Convert any binary data to ArrayBuffer","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/dy/to-array-buffer.git"},"keywords":["arraybuffer","array-buffer","array","buffer","binary","load","raw","load raw","data","blob","file"],"author":{"name":"Dima Yv","email":"dfcreative@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dy/to-array-buffer/issues"},"homepage":"https://github.com/dy/to-array-buffer#readme","dependencies":{"flatten-vertex-data":"^1.0.2","is-blob":"^2.0.1","string-to-arraybuffer":"^1.0.0"},"devDependencies":{"buffer-to-arraybuffer":"^0.0.4","data-uri-to-buffer":"^1.0.0","is-browser":"^2.0.1","ndarray":"^1.0.18","tape":"^4.6.3"},"gitHead":"a8409b4609fec448ba5fc773cbc3ff4d7394f3d1","_id":"to-array-buffer@3.1.0","_npmVersion":"6.4.1","_nodeVersion":"8.11.1","_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"dist":{"shasum":"32c77dd723e2d2891f6fd900c566ee95e6f52f6b","size":3309,"noattachment":false,"key":"/to-array-buffer/-/to-array-buffer-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-array-buffer/download/to-array-buffer-3.1.0.tgz"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/to-array-buffer_3.1.0_1542069343199_0.16321937511693507"},"_hasShrinkwrap":false,"publish_time":1542069343334,"_cnpm_publish_time":1542069343334,"_cnpmcore_publish_time":"2021-12-17T00:39:07.121Z"},"3.0.0":{"name":"to-array-buffer","version":"3.0.0","description":"Convert any binary data to ArrayBuffer","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/dy/to-array-buffer.git"},"keywords":["arraybuffer","array-buffer","array","buffer","binary","load","raw","load raw","data","blob","file"],"author":{"name":"Dima Yv","email":"dfcreative@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dy/to-array-buffer/issues"},"homepage":"https://github.com/dy/to-array-buffer#readme","dependencies":{"flatten-vertex-data":"^1.0.2","is-blob":"^2.0.1","string-to-arraybuffer":"^1.0.0"},"devDependencies":{"buffer-to-arraybuffer":"^0.0.4","data-uri-to-buffer":"^1.0.0","is-browser":"^2.0.1","ndarray":"^1.0.18","tape":"^4.6.3"},"gitHead":"710f643153174c4740ccbb235acee0d83391e8c3","_id":"to-array-buffer@3.0.0","_npmVersion":"6.4.1","_nodeVersion":"8.11.1","_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"dist":{"shasum":"639559de365c50305ce6a6b95fb9a87faadc48c2","size":3206,"noattachment":false,"key":"/to-array-buffer/-/to-array-buffer-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-array-buffer/download/to-array-buffer-3.0.0.tgz"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/to-array-buffer_3.0.0_1541984728815_0.9114780637741968"},"_hasShrinkwrap":false,"publish_time":1541984728897,"_cnpm_publish_time":1541984728897,"_cnpmcore_publish_time":"2021-12-17T00:39:07.382Z"},"2.2.2":{"name":"to-array-buffer","version":"2.2.2","description":"Convert any binary data to ArrayBuffer","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/dy/to-array-buffer.git"},"keywords":["arraybuffer","array-buffer","array","buffer","binary","load","raw","load raw","data","blob","file"],"author":{"name":"Dima Yv","email":"dfcreative@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dy/to-array-buffer/issues"},"homepage":"https://github.com/dy/to-array-buffer#readme","dependencies":{"flatten-vertex-data":"^1.0.2","is-blob":"^2.0.1","string-to-arraybuffer":"^1.0.0"},"devDependencies":{"buffer-to-arraybuffer":"^0.0.4","data-uri-to-buffer":"^1.0.0","is-browser":"^2.0.1","ndarray":"^1.0.18","tape":"^4.6.3"},"gitHead":"c7e87a58f6bf9f607b7709a091e948e9408c24cf","_id":"to-array-buffer@2.2.2","_npmVersion":"6.4.1","_nodeVersion":"8.11.1","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"dist":{"shasum":"f9dc6b5a18f232636cf1515b7ca146fdaf88d442","size":3085,"noattachment":false,"key":"/to-array-buffer/-/to-array-buffer-2.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-array-buffer/download/to-array-buffer-2.2.2.tgz"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/to-array-buffer_2.2.2_1541977991076_0.6587779472237258"},"_hasShrinkwrap":false,"publish_time":1541977991172,"_cnpm_publish_time":1541977991172,"_cnpmcore_publish_time":"2021-12-17T00:39:07.592Z"},"2.2.1":{"name":"to-array-buffer","version":"2.2.1","description":"Convert any binary data to ArrayBuffer","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/dy/to-array-buffer.git"},"keywords":["arraybuffer","array-buffer","array","buffer","binary","load","raw","load raw","data","blob","file"],"author":{"name":"Dima Yv","email":"dfcreative@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dy/to-array-buffer/issues"},"homepage":"https://github.com/dy/to-array-buffer#readme","dependencies":{"flatten-vertex-data":"^1.0.2","is-blob":"^2.0.1","string-to-arraybuffer":"^1.0.0"},"devDependencies":{"buffer-to-arraybuffer":"^0.0.4","data-uri-to-buffer":"^1.0.0","is-browser":"^2.0.1","ndarray":"^1.0.18","tape":"^4.6.3"},"gitHead":"ad734b463336d9eaa640f97d0f98db23916579c5","_id":"to-array-buffer@2.2.1","_npmVersion":"6.4.1","_nodeVersion":"8.11.1","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"dist":{"shasum":"5a4a7969a404c76d018357a064b7a3d2c4a1bb1d","size":3032,"noattachment":false,"key":"/to-array-buffer/-/to-array-buffer-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-array-buffer/download/to-array-buffer-2.2.1.tgz"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/to-array-buffer_2.2.1_1541972006405_0.9796620268262606"},"_hasShrinkwrap":false,"publish_time":1541972007113,"_cnpm_publish_time":1541972007113,"_cnpmcore_publish_time":"2021-12-17T00:39:07.815Z"},"2.2.0":{"name":"to-array-buffer","version":"2.2.0","description":"Convert any binary data to ArrayBuffer","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/dy/to-array-buffer.git"},"keywords":["arraybuffer","array-buffer","array","buffer","binary","load","raw","load raw","data","blob","file"],"author":{"name":"Dima Yv","email":"dfcreative@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dy/to-array-buffer/issues"},"homepage":"https://github.com/dy/to-array-buffer#readme","dependencies":{"flatten-vertex-data":"^1.0.2","is-blob":"^2.0.1","string-to-arraybuffer":"^1.0.0"},"devDependencies":{"buffer-to-arraybuffer":"^0.0.4","data-uri-to-buffer":"^1.0.0","is-browser":"^2.0.1","ndarray":"^1.0.18","tape":"^4.6.3"},"gitHead":"d52ac9591b72b4dc3f8929b2e8ee1898c4e93101","_id":"to-array-buffer@2.2.0","_npmVersion":"6.4.1","_nodeVersion":"8.11.1","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"dist":{"shasum":"5424c27533e0be23e1748d8c38a179b6444e8323","size":3039,"noattachment":false,"key":"/to-array-buffer/-/to-array-buffer-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-array-buffer/download/to-array-buffer-2.2.0.tgz"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/to-array-buffer_2.2.0_1541970804893_0.42649173937416474"},"_hasShrinkwrap":false,"publish_time":1541970804979,"_cnpm_publish_time":1541970804979,"_cnpmcore_publish_time":"2021-12-17T00:39:08.039Z"},"2.1.0":{"name":"to-array-buffer","version":"2.1.0","description":"Convert binary-like data to ArrayBuffer","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/dfcreative/to-array-buffer.git"},"keywords":["arraybuffer","array-buffer","array","buffer"],"author":{"name":"Dima Yv","email":"dfcreative@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dfcreative/to-array-buffer/issues"},"homepage":"https://github.com/dfcreative/to-array-buffer#readme","dependencies":{"is-base64":"^0.0.2","string-to-arraybuffer":"^1.0.0"},"devDependencies":{"buffer-to-arraybuffer":"^0.0.4","data-uri-to-buffer":"^1.0.0","is-browser":"^2.0.1","ndarray":"^1.0.18","tape":"^4.6.3"},"gitHead":"56c02b71f8b13d9b528c7206734e9459c9266bf4","_id":"to-array-buffer@2.1.0","_shasum":"e311acc7c13f0808465a445d57d14b80afe6ee01","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.1.2","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"dist":{"shasum":"e311acc7c13f0808465a445d57d14b80afe6ee01","size":2849,"noattachment":false,"key":"/to-array-buffer/-/to-array-buffer-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-array-buffer/download/to-array-buffer-2.1.0.tgz"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/to-array-buffer-2.1.0.tgz_1498597222099_0.09075841214507818"},"directories":{},"publish_time":1498597223039,"_hasShrinkwrap":false,"_cnpm_publish_time":1498597223039,"_cnpmcore_publish_time":"2021-12-17T00:39:08.268Z"},"2.0.1":{"name":"to-array-buffer","version":"2.0.1","description":"Convert binary-like data to ArrayBuffer","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/dfcreative/to-array-buffer.git"},"keywords":["arraybuffer","array-buffer","array","buffer"],"author":{"name":"Dima Yv","email":"dfcreative@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dfcreative/to-array-buffer/issues"},"homepage":"https://github.com/dfcreative/to-array-buffer#readme","dependencies":{"atob-lite":"^2.0.0","is-base64":"^0.0.2"},"devDependencies":{"buffer-to-arraybuffer":"^0.0.4","data-uri-to-buffer":"^1.0.0","is-browser":"^2.0.1","ndarray":"^1.0.18","tape":"^4.6.3"},"gitHead":"0654719f3ddd23fa2057328883126a8224516bc4","_id":"to-array-buffer@2.0.1","_shasum":"67a0e36776c3a6f74905cd073d2aeaf4082e3c63","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.1.2","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"dist":{"shasum":"67a0e36776c3a6f74905cd073d2aeaf4082e3c63","size":3522,"noattachment":false,"key":"/to-array-buffer/-/to-array-buffer-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-array-buffer/download/to-array-buffer-2.0.1.tgz"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/to-array-buffer-2.0.1.tgz_1497846513411_0.37979597179219127"},"directories":{},"publish_time":1497846514332,"_hasShrinkwrap":false,"_cnpm_publish_time":1497846514332,"_cnpmcore_publish_time":"2021-12-17T00:39:08.478Z"},"2.0.0":{"name":"to-array-buffer","version":"2.0.0","description":"Convert binary-like data to ArrayBuffer","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/dfcreative/to-array-buffer.git"},"keywords":["arraybuffer","array-buffer","array","buffer"],"author":{"name":"Dima Yv","email":"dfcreative@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dfcreative/to-array-buffer/issues"},"homepage":"https://github.com/dfcreative/to-array-buffer#readme","dependencies":{"atob-lite":"^1.0.0","is-base64":"0.0.2"},"devDependencies":{"buffer-to-arraybuffer":"0.0.4","data-uri-to-buffer":"0.0.4","is-browser":"^2.0.1","ndarray":"^1.0.18","tape":"^4.6.3"},"gitHead":"42cf886cbe31519ef81a68d20a9f50f6e246f5d3","_id":"to-array-buffer@2.0.0","_shasum":"aca3827e8614bc62692f492922b75e88b37aeddc","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.1.2","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"dist":{"shasum":"aca3827e8614bc62692f492922b75e88b37aeddc","size":3491,"noattachment":false,"key":"/to-array-buffer/-/to-array-buffer-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-array-buffer/download/to-array-buffer-2.0.0.tgz"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/to-array-buffer-2.0.0.tgz_1497720019769_0.7805618394631892"},"directories":{},"publish_time":1497720020783,"_hasShrinkwrap":false,"_cnpm_publish_time":1497720020783,"_cnpmcore_publish_time":"2021-12-17T00:39:08.682Z"},"1.2.4":{"name":"to-array-buffer","version":"1.2.4","description":"Convert anything (reasonable) to ArrayBuffer","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/dfcreative/to-array-buffer.git"},"keywords":["arraybuffer","array-buffer","array","buffer","audio","webaudio","imagedata","convert","audiobuffer","byte"],"author":{"name":"Dima Yv","email":"dfcreative@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dfcreative/to-array-buffer/issues"},"homepage":"https://github.com/dfcreative/to-array-buffer#readme","dependencies":{"atob-lite":"^1.0.0","is-audio-buffer":"^1.0.1","is-data-uri":"^0.1.0"},"devDependencies":{"audio-buffer":"^3.1.0","audio-context":"^0.1.0","buffer-to-arraybuffer":"0.0.4","data-uri-to-buffer":"0.0.4","is-browser":"^2.0.1","ndarray":"^1.0.18"},"gitHead":"9b5a28aed6ad8af591f413b81e86a5d52fdd6141","_id":"to-array-buffer@1.2.4","_shasum":"7efdc3194a5a0d2b0ba93fba9d3edc33a1259473","_from":".","_npmVersion":"3.7.2","_nodeVersion":"6.2.0","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"}],"dist":{"shasum":"7efdc3194a5a0d2b0ba93fba9d3edc33a1259473","size":2280,"noattachment":false,"key":"/to-array-buffer/-/to-array-buffer-1.2.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-array-buffer/download/to-array-buffer-1.2.4.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/to-array-buffer-1.2.4.tgz_1492018505637_0.08725172025151551"},"directories":{},"publish_time":1492018506248,"_hasShrinkwrap":false,"_cnpm_publish_time":1492018506248,"_cnpmcore_publish_time":"2021-12-17T00:39:08.870Z"},"1.2.3":{"name":"to-array-buffer","version":"1.2.3","description":"Convert anything (reasonable) to ArrayBuffer","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/dfcreative/to-array-buffer.git"},"keywords":["arraybuffer","array-buffer","array","buffer","audio","webaudio","imagedata","convert","audiobuffer","byte"],"author":{"name":"Dima Yv","email":"dfcreative@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dfcreative/to-array-buffer/issues"},"homepage":"https://github.com/dfcreative/to-array-buffer#readme","dependencies":{"atob-lite":"^1.0.0","is-audio-buffer":"^1.0.1","is-data-uri":"^0.1.0"},"devDependencies":{"buffer-to-arraybuffer":"0.0.4","data-uri-to-buffer":"0.0.4","audio-buffer":"^2.2.0","audio-context":"^0.1.0","is-browser":"^2.0.1","ndarray":"^1.0.18"},"gitHead":"e1b410571431b7327dfa300df5f020068d38bb8a","_id":"to-array-buffer@1.2.3","_shasum":"41e7bc643b31600ae785515ef10edbfb42270893","_from":".","_npmVersion":"3.7.2","_nodeVersion":"6.2.0","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"}],"dist":{"shasum":"41e7bc643b31600ae785515ef10edbfb42270893","size":2211,"noattachment":false,"key":"/to-array-buffer/-/to-array-buffer-1.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-array-buffer/download/to-array-buffer-1.2.3.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/to-array-buffer-1.2.3.tgz_1491594258921_0.10891093267127872"},"directories":{},"publish_time":1491594260754,"_hasShrinkwrap":false,"_cnpm_publish_time":1491594260754,"_cnpmcore_publish_time":"2021-12-17T00:39:09.059Z"},"1.2.2":{"name":"to-array-buffer","version":"1.2.2","description":"Convert anything (reasonable) to ArrayBuffer","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/dfcreative/to-array-buffer.git"},"keywords":["arraybuffer","array-buffer","array","buffer","audio","webaudio","imagedata","convert","audiobuffer","byte"],"author":{"name":"Dima Yv","email":"dfcreative@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dfcreative/to-array-buffer/issues"},"homepage":"https://github.com/dfcreative/to-array-buffer#readme","dependencies":{"atob-lite":"^1.0.0","is-audio-buffer":"^1.0.1","is-data-uri":"^0.1.0"},"devDependencies":{"buffer-to-arraybuffer":"0.0.4","data-uri-to-buffer":"0.0.4","audio-buffer":"^2.2.0","audio-context":"^0.1.0","is-browser":"^2.0.1","ndarray":"^1.0.18"},"gitHead":"31e560a894c551b4dc44012a5d5c50b6496ceca3","_id":"to-array-buffer@1.2.2","_shasum":"233bee75d4f8ca88c7e37b0f6372a5e581166c85","_from":".","_npmVersion":"3.7.2","_nodeVersion":"6.2.0","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"}],"dist":{"shasum":"233bee75d4f8ca88c7e37b0f6372a5e581166c85","size":2213,"noattachment":false,"key":"/to-array-buffer/-/to-array-buffer-1.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-array-buffer/download/to-array-buffer-1.2.2.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/to-array-buffer-1.2.2.tgz_1489879012500_0.016778085380792618"},"directories":{},"publish_time":1489879013088,"_hasShrinkwrap":false,"_cnpm_publish_time":1489879013088,"_cnpmcore_publish_time":"2021-12-17T00:39:09.269Z"},"1.2.1":{"name":"to-array-buffer","version":"1.2.1","description":"Convert anything (reasonable) to ArrayBuffer","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/dfcreative/to-array-buffer.git"},"keywords":["arraybuffer","array-buffer","array","buffer","audio","webaudio","imagedata","convert","audiobuffer","byte"],"author":{"name":"Dima Yv","email":"dfcreative@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dfcreative/to-array-buffer/issues"},"homepage":"https://github.com/dfcreative/to-array-buffer#readme","dependencies":{"buffer-to-arraybuffer":"0.0.4","data-uri-to-buffer":"0.0.4","is-audio-buffer":"^1.0.1","is-data-uri":"^0.1.0"},"devDependencies":{"audio-buffer":"^2.2.0","audio-context":"^0.1.0","is-browser":"^2.0.1","ndarray":"^1.0.18"},"gitHead":"810c597209273dfb259f8d2c3d60c8ed71bbece7","_id":"to-array-buffer@1.2.1","_shasum":"72f397f5e9f6678a1ff76b0df500d8ddcd657bd9","_from":".","_npmVersion":"3.7.2","_nodeVersion":"6.2.0","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"}],"dist":{"shasum":"72f397f5e9f6678a1ff76b0df500d8ddcd657bd9","size":2166,"noattachment":false,"key":"/to-array-buffer/-/to-array-buffer-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-array-buffer/download/to-array-buffer-1.2.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/to-array-buffer-1.2.1.tgz_1489857380667_0.5111741563305259"},"directories":{},"publish_time":1489857381187,"_hasShrinkwrap":false,"_cnpm_publish_time":1489857381187,"_cnpmcore_publish_time":"2021-12-17T00:39:09.483Z"},"1.2.0":{"name":"to-array-buffer","version":"1.2.0","description":"Convert anything (reasonable) to ArrayBuffer","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/dfcreative/to-array-buffer.git"},"keywords":["array-buffer","array","buffer","audio","webaudio","arraybuffer","byte"],"author":{"name":"DY","email":"dfcreative@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dfcreative/to-array-buffer/issues"},"homepage":"https://github.com/dfcreative/to-array-buffer#readme","dependencies":{"is-audio-buffer":"^1.0.1"},"devDependencies":{"audio-buffer":"^2.2.0","audio-context":"^0.1.0","is-browser":"^2.0.1","ndarray":"^1.0.18"},"gitHead":"4e7059949aa25f5dbd8755943055d370fc33e1bc","_id":"to-array-buffer@1.2.0","_shasum":"03361a76a85cebadd160ca17f6e1e2d567c611fc","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"}],"dist":{"shasum":"03361a76a85cebadd160ca17f6e1e2d567c611fc","size":1898,"noattachment":false,"key":"/to-array-buffer/-/to-array-buffer-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-array-buffer/download/to-array-buffer-1.2.0.tgz"},"directories":{},"publish_time":1451499260348,"_hasShrinkwrap":false,"_cnpm_publish_time":1451499260348,"_cnpmcore_publish_time":"2021-12-17T00:39:09.654Z"},"1.1.0":{"name":"to-array-buffer","version":"1.1.0","description":"Convert anything (reasonable) to ArrayBuffer","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/dfcreative/to-array-buffer.git"},"keywords":["array-buffer","array","buffer","audio","webaudio","arraybuffer","byte"],"author":{"name":"DY","email":"dfcreative@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dfcreative/to-array-buffer/issues"},"homepage":"https://github.com/dfcreative/to-array-buffer#readme","dependencies":{"is-audio-buffer":"^1.0.1"},"devDependencies":{"audio-buffer":"^2.2.0","audio-context":"^0.1.0","is-browser":"^2.0.1","ndarray":"^1.0.18"},"gitHead":"74795ff7b753377a69ec82670a25e693f32c2f11","_id":"to-array-buffer@1.1.0","_shasum":"64003f0d90f12b47a54f144f02df3d00fa6abd40","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"}],"dist":{"shasum":"64003f0d90f12b47a54f144f02df3d00fa6abd40","size":1679,"noattachment":false,"key":"/to-array-buffer/-/to-array-buffer-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-array-buffer/download/to-array-buffer-1.1.0.tgz"},"directories":{},"publish_time":1451498101939,"_hasShrinkwrap":false,"_cnpm_publish_time":1451498101939,"_cnpmcore_publish_time":"2021-12-17T00:39:09.864Z"},"1.0.0":{"name":"to-array-buffer","version":"1.0.0","description":"Convert anything (reasonable) to ArrayBuffer","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/dfcreative/to-array-buffer.git"},"keywords":["array-buffer","array","buffer","audio","webaudio","arraybuffer","byte"],"author":{"name":"DY","email":"dfcreative@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dfcreative/to-array-buffer/issues"},"homepage":"https://github.com/dfcreative/to-array-buffer#readme","dependencies":{"is-audio-buffer":"^1.0.1"},"devDependencies":{"audio-buffer":"^2.2.0","audio-context":"^0.1.0","is-browser":"^2.0.1","ndarray":"^1.0.18"},"gitHead":"af14bdf8c6b3ef9a6d175c454bc529ce9571f372","_id":"to-array-buffer@1.0.0","_shasum":"1bd39e5e05d8b077391d28e71a3d107a26e19a63","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"155263213@qq.com"}],"dist":{"shasum":"1bd39e5e05d8b077391d28e71a3d107a26e19a63","size":1658,"noattachment":false,"key":"/to-array-buffer/-/to-array-buffer-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/to-array-buffer/download/to-array-buffer-1.0.0.tgz"},"directories":{},"publish_time":1451455041551,"_hasShrinkwrap":false,"_cnpm_publish_time":1451455041551,"_cnpmcore_publish_time":"2021-12-17T00:39:10.089Z"}},"readme":"# to-array-buffer [![unstable](https://img.shields.io/badge/stability-unstable-orange.svg)](http://github.com/badges/stability-badges) [![Build Status](https://img.shields.io/travis/dy/to-array-buffer.svg)](https://travis-ci.org/dy/to-array-buffer)\r\n\r\nTurn any binary data container into an _ArrayBuffer_ in sync way. Detected containers:\r\n\r\n* Buffer\r\n* TypedArray\r\n* ArrayBufferView\r\n* ArrayBuffer\r\n* data-uri string\r\n* base64 string\r\n* plain string\r\n* Array\r\n* Array of Arrays\r\n* Number (creates new ArrayBuffer of the defined length in bytes)\r\n* etc.\r\n\r\nIt also handles some custom data types, like `ImageData`, `AudioBuffer` etc., but in general it returns `null` for objects not looking like binary data containers. Note also that it does not handle _Blob_ and _File_, since they require async API.\r\n\r\n[![npm install to-array-buffer](https://nodei.co/npm/to-array-buffer.png?mini=true)](https://npmjs.org/package/to-array-buffer/)\r\n\r\n```js\r\nvar toArrayBuffer = require('to-array-buffer')\r\nvar context = require('audio-context')\r\n\r\n// Get array buffer from any object\r\nab = toArrayBuffer(new Buffer(100))\r\nab = toArrayBuffer(new Float32Array(12))\r\nab = toArrayBuffer(dataURIstr)\r\nab = toArrayBuffer(base64str)\r\nab = toArrayBuffer(ndarray)\r\nab = toArrayBuffer([[0, 1, 0], [1, 0, 1]])\r\n```\r\n\r\n### Related\r\n\r\n* [to-arraybuffer](https://www.npmjs.com/package/to-arraybuffer) − convert Buffer to ArrayBuffer, fast implementation.\r\n* [data-uri-to-buffer](https://npmjs.org/package/data-uri-to-buffer) − advanced data-uri decoder.\r\n* [save-file](https://github.com/dy/save-file) — save any input data to file in node/browser.\r\n* [buffer-to-arraybuffer](https://npmjs.org/package/buffer-to-arraybuffer) — convert surely known Buffer datatype to ArrayBuffer.\r\n\r\n© Dmitry Yv 2018. MIT Licensed.\r\n","_attachments":{},"homepage":"https://github.com/dy/to-array-buffer#readme","bugs":{"url":"https://github.com/dy/to-array-buffer/issues"},"license":"MIT"}