{"_id":"wav-decoder","_rev":"4206444","name":"wav-decoder","description":"promise-based wav decoder","dist-tags":{"latest":"1.3.0"},"maintainers":[{"name":"mohayonao","email":""}],"time":{"modified":"2026-03-04T17:03:37.000Z","created":"2015-03-16T14:46:01.437Z","1.3.0":"2017-08-10T21:02:30.053Z","1.2.0":"2017-08-09T21:29:52.645Z","1.1.1":"2017-06-24T22:26:11.814Z","1.1.0":"2016-04-05T21:56:30.626Z","1.0.0":"2015-12-21T13:30:14.186Z","0.3.0":"2015-06-10T07:01:23.336Z","0.2.1":"2015-03-19T04:34:10.372Z","0.2.0":"2015-03-18T21:47:34.108Z","0.1.1":"2015-03-17T11:29:18.506Z","0.1.0":"2015-03-17T06:23:42.647Z","0.0.1":"2015-03-16T14:46:01.437Z"},"users":{},"author":{"name":"Nao Yonamine","email":"mohayonao@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/mohayonao/wav-decoder.git"},"versions":{"1.3.0":{"name":"wav-decoder","description":"promise-based wav decoder","version":"1.3.0","author":{"name":"Nao Yonamine","email":"mohayonao@gmail.com"},"bugs":{"url":"https://github.com/mohayonao/wav-decoder/issues"},"dependencies":{},"devDependencies":{"eslint":"^4.4.1","mocha":"^3.5.0","wav-encoder":"^1.2.0"},"files":["package.json","README.md","index.js"],"homepage":"https://github.com/mohayonao/wav-decoder/","keywords":["decode","universal","wav"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/mohayonao/wav-decoder.git"},"scripts":{"lint":"eslint index.js","postversion":"git push && git push --tags","prepublish":"npm run lint && npm run test","preversion":"npm run lint && npm run test","test":"mocha","travis":"npm run lint && npm run test"},"gitHead":"7f1a56574db663276acd06158223a517d5dc31a4","_id":"wav-decoder@1.3.0","_npmVersion":"5.3.0","_nodeVersion":"8.1.0","_npmUser":{"name":"mohayonao","email":"mohayonao@gmail.com"},"dist":{"shasum":"1d0bf7195f623661bd182464c434a3e8bc42eb0e","size":2494,"noattachment":false,"key":"/wav-decoder/-/wav-decoder-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/wav-decoder/download/wav-decoder-1.3.0.tgz"},"maintainers":[{"name":"mohayonao","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wav-decoder-1.3.0.tgz_1502398949870_0.7551715604495257"},"directories":{},"publish_time":1502398950053,"_hasShrinkwrap":false,"_cnpm_publish_time":1502398950053,"_cnpmcore_publish_time":"2021-12-17T11:58:34.822Z"},"1.2.0":{"name":"wav-decoder","description":"promise-based wav decoder","version":"1.2.0","author":{"name":"Nao Yonamine","email":"mohayonao@gmail.com"},"bugs":{"url":"https://github.com/mohayonao/wav-decoder/issues"},"dependencies":{},"devDependencies":{"eslint":"^4.4.1","mocha":"^3.5.0"},"files":["package.json","README.md","index.js"],"homepage":"https://github.com/mohayonao/wav-decoder/","keywords":["decode","universal","wav"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/mohayonao/wav-decoder.git"},"scripts":{"lint":"eslint index.js","postversion":"git push && git push --tags","prepublish":"npm run lint && npm run test","preversion":"npm run lint && npm run test","test":"mocha","travis":"npm run lint && npm run test"},"gitHead":"de6e53f7fa5e0e0991b3605242f2e0b696375fe2","_id":"wav-decoder@1.2.0","_npmVersion":"5.3.0","_nodeVersion":"8.1.0","_npmUser":{"name":"mohayonao","email":"mohayonao@gmail.com"},"dist":{"shasum":"691b9d7898ce7752e5702b796994511f3ddf80b7","size":2346,"noattachment":false,"key":"/wav-decoder/-/wav-decoder-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/wav-decoder/download/wav-decoder-1.2.0.tgz"},"maintainers":[{"name":"mohayonao","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wav-decoder-1.2.0.tgz_1502314192475_0.02051165676675737"},"directories":{},"publish_time":1502314192645,"_hasShrinkwrap":false,"_cnpm_publish_time":1502314192645,"_cnpmcore_publish_time":"2021-12-17T11:58:35.051Z"},"1.1.1":{"name":"wav-decoder","description":"promise-based wav decoder","version":"1.1.1","author":{"name":"Nao Yonamine","email":"mohayonao@gmail.com"},"bugs":{"url":"https://github.com/mohayonao/wav-decoder/issues"},"dependencies":{},"devDependencies":{"ava":"^0.13.0","eslint":"^2.7.0"},"files":["package.json","README.md","index.js"],"homepage":"https://github.com/mohayonao/wav-decoder/","keywords":["decode","universal","wav"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/mohayonao/wav-decoder.git"},"scripts":{"lint":"eslint index.js","postversion":"git push && git push --tags","prepublish":"npm run lint && npm run test","preversion":"npm run lint && npm run test","test":"ava test","travis":"npm run lint && npm run test"},"gitHead":"a00818fe3d29833e205795f44ca2ceda092e93b2","_id":"wav-decoder@1.1.1","_npmVersion":"5.0.3","_nodeVersion":"8.1.0","_npmUser":{"name":"mohayonao","email":"mohayonao@gmail.com"},"dist":{"shasum":"25269d58b2890ec7bf06c3d3cade5b4c4da32b64","size":2318,"noattachment":false,"key":"/wav-decoder/-/wav-decoder-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/wav-decoder/download/wav-decoder-1.1.1.tgz"},"maintainers":[{"name":"mohayonao","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wav-decoder-1.1.1.tgz_1498343170434_0.5149059274699539"},"directories":{},"publish_time":1498343171814,"_hasShrinkwrap":false,"_cnpm_publish_time":1498343171814,"_cnpmcore_publish_time":"2021-12-17T11:58:35.305Z"},"1.1.0":{"name":"wav-decoder","description":"promise-based wav decoder","version":"1.1.0","author":{"name":"Nao Yonamine","email":"mohayonao@gmail.com"},"bugs":{"url":"https://github.com/mohayonao/wav-decoder/issues"},"dependencies":{},"devDependencies":{"ava":"^0.13.0","eslint":"^2.7.0"},"files":["package.json","README.md","index.js"],"homepage":"https://github.com/mohayonao/wav-decoder/","keywords":["decode","universal","wav"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/mohayonao/wav-decoder.git"},"scripts":{"lint":"eslint index.js","postversion":"git push && git push --tags","prepublish":"npm run lint && npm run test","preversion":"npm run lint && npm run test","test":"ava test","travis":"npm run lint && npm run test"},"gitHead":"2b31fcd57ab77d0ad3e103304a32b46f28e1d2a1","_id":"wav-decoder@1.1.0","_shasum":"de00a4414456093f7928b7a2f5ecf0d86ffd8676","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.10.0","_npmUser":{"name":"mohayonao","email":"mohayonao@gmail.com"},"dist":{"shasum":"de00a4414456093f7928b7a2f5ecf0d86ffd8676","size":2275,"noattachment":false,"key":"/wav-decoder/-/wav-decoder-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/wav-decoder/download/wav-decoder-1.1.0.tgz"},"maintainers":[{"name":"mohayonao","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/wav-decoder-1.1.0.tgz_1459893387994_0.47906184126622975"},"directories":{},"publish_time":1459893390626,"_hasShrinkwrap":false,"_cnpm_publish_time":1459893390626,"_cnpmcore_publish_time":"2021-12-17T11:58:35.519Z"},"1.0.0":{"name":"wav-decoder","description":"universal wav data decoder","version":"1.0.0","author":{"name":"Nao Yonamine","email":"mohayonao@gmail.com"},"bugs":{"url":"https://github.com/mohayonao/wav-decoder/issues"},"dependencies":{"dataview2":"^1.0.0","inline-worker":"^1.0.0"},"devDependencies":{"mocha":"^2.3.4"},"files":["package.json","README.md","index.js","lib"],"homepage":"https://github.com/mohayonao/wav-decoder/","keywords":["decode","universal","wav"],"licenses":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/mohayonao/wav-decoder.git"},"scripts":{"test":"mocha","travis":"npm run test"},"gitHead":"7e7c6ca7de7ef4094121e62cc46393cc91894751","_id":"wav-decoder@1.0.0","_shasum":"cabe166e37b7203d1fcb802bf71a6e445111f64a","_from":".","_npmVersion":"3.3.6","_nodeVersion":"4.1.2","_npmUser":{"name":"mohayonao","email":"mohayonao@gmail.com"},"dist":{"shasum":"cabe166e37b7203d1fcb802bf71a6e445111f64a","size":2897,"noattachment":false,"key":"/wav-decoder/-/wav-decoder-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/wav-decoder/download/wav-decoder-1.0.0.tgz"},"maintainers":[{"name":"mohayonao","email":""}],"directories":{},"publish_time":1450704614186,"_hasShrinkwrap":false,"_cnpm_publish_time":1450704614186,"_cnpmcore_publish_time":"2021-12-17T11:58:35.699Z"},"0.3.0":{"name":"wav-decoder","description":"isomorphic wav data decoder","version":"0.3.0","author":{"name":"Nao Yonamine","email":"mohayonao@gmail.com"},"bugs":{"url":"https://github.com/mohayonao/wav-decoder/issues"},"dependencies":{"dataview2":"^0.1.0","inline-worker":"^0.1.0"},"devDependencies":{"babel":"^5.5.6","babel-eslint":"^3.1.15","browserify":"^10.2.4","eslint":"^0.22.1","espower-babel":"^3.2.0","isparta":"^3.0.3","mocha":"^2.2.5","power-assert":"^0.11.0","uglify-js":"^2.4.23"},"files":["package.json","README.md","lib"],"homepage":"https://github.com/mohayonao/wav-decoder/","keywords":["audiodata","decode","isomorphic","wav"],"licenses":"MIT","main":"./lib/index.js","peerDependencies":{"audiodata":"*"},"repository":{"type":"git","url":"https://github.com/mohayonao/wav-decoder.git"},"scripts":{"build":"npm run build-to5 && npm run build-browser && npm run build-minify","build-browser":"browserify lib/index.js --standalone WavDecoder --outfile build/wav-decoder.js","build-minify":"uglifyjs build/wav-decoder.js -m -r self -o build/wav-decoder.min.js","build-to5":"babel src --out-dir lib && cp src/DecoderWorker.js lib/","cover":"babel-node $(npm bin)/isparta cover --report text --report html --report lcov _mocha","lint":"eslint src test","test":"mocha --compilers js:espower-babel/guess","travis":"npm run lint && npm run test"},"gitHead":"9cec6c4a84ffe4c471afbe38bdd0c12206eb135a","_id":"wav-decoder@0.3.0","_shasum":"223aa811263cc7f2d2cb53f2faa727b9483a5aa5","_from":".","_npmVersion":"2.7.0","_nodeVersion":"0.12.0","_npmUser":{"name":"mohayonao","email":"mohayonao@gmail.com"},"maintainers":[{"name":"mohayonao","email":""}],"dist":{"shasum":"223aa811263cc7f2d2cb53f2faa727b9483a5aa5","size":3725,"noattachment":false,"key":"/wav-decoder/-/wav-decoder-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/wav-decoder/download/wav-decoder-0.3.0.tgz"},"directories":{},"publish_time":1433919683336,"_hasShrinkwrap":false,"_cnpm_publish_time":1433919683336,"_cnpmcore_publish_time":"2021-12-17T11:58:35.938Z"},"0.2.1":{"name":"wav-decoder","description":"isomorphic wav data decoder","version":"0.2.1","author":{"name":"Nao Yonamine","email":"mohayonao@gmail.com"},"bugs":{"url":"https://github.com/mohayonao/wav-decoder/issues"},"dependencies":{"inline-worker":"^0.1.0"},"devDependencies":{"babel":"^4.7.16","browserify":"^9.0.3","espower-babel":"^1.4.0","isparta":"^2.2.0","jshint":"^2.6.3","jshint-stylish":"^1.0.1","mocha":"^2.2.1","power-assert":"^0.10.2","uglify-js":"^2.4.17"},"files":["package.json","README.md","lib"],"homepage":"https://github.com/mohayonao/wav-decoder/","keywords":["decode","isomorphic","wav"],"licenses":"MIT","main":"./lib/index.js","peerDependencies":{"audiodata":"*"},"repository":{"type":"git","url":"https://github.com/mohayonao/wav-decoder.git"},"scripts":{"build":"npm run build-to5 && npm run build-browser && npm run build-minify","build-browser":"browserify ./lib/index.js --standalone WavDecoder --outfile build/wav-decoder.js","build-minify":"uglifyjs build/wav-decoder.js -m -r self -o build/wav-decoder.min.js","build-to5":"babel src --out-dir lib","cover":"babel-node node_modules/.bin/isparta cover --report text --report html --report lcov node_modules/.bin/_mocha","lint":"jshint src test --reporter node_modules/jshint-stylish/stylish.js","test":"mocha --require espower-babel/guess","travis":"npm run lint && npm run test"},"gitHead":"81b2ba818eda269060ca353619559a9624d1d333","_id":"wav-decoder@0.2.1","_shasum":"f0a6300273dc1b61759077ec762bc6046041ba6b","_from":".","_npmVersion":"2.7.0","_nodeVersion":"0.12.0","_npmUser":{"name":"mohayonao","email":"mohayonao@gmail.com"},"maintainers":[{"name":"mohayonao","email":""}],"dist":{"shasum":"f0a6300273dc1b61759077ec762bc6046041ba6b","size":3623,"noattachment":false,"key":"/wav-decoder/-/wav-decoder-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/wav-decoder/download/wav-decoder-0.2.1.tgz"},"directories":{},"publish_time":1426739650372,"_hasShrinkwrap":false,"_cnpm_publish_time":1426739650372,"_cnpmcore_publish_time":"2021-12-17T11:58:36.189Z"},"0.2.0":{"name":"wav-decoder","description":"isomorphic wav data decoder","version":"0.2.0","author":{"name":"Nao Yonamine","email":"mohayonao@gmail.com"},"bugs":{"url":"https://github.com/mohayonao/wav-decoder/issues"},"dependencies":{"inline-worker":"^0.1.0"},"devDependencies":{"babel":"^4.7.16","browserify":"^9.0.3","espower-babel":"^1.4.0","isparta":"^2.2.0","jshint":"^2.6.3","jshint-stylish":"^1.0.1","mocha":"^2.2.1","power-assert":"^0.10.2","uglify-js":"^2.4.17"},"files":["package.json","README.md","lib"],"homepage":"https://github.com/mohayonao/wav-decoder/","keywords":["decode","isomorphic","wav"],"licenses":"MIT","main":"./lib/index.js","peerDependencies":{"audiodata":"*"},"repository":{"type":"git","url":"https://github.com/mohayonao/wav-decoder.git"},"scripts":{"build":"npm run build-to5 && npm run build-browser && npm run build-minify","build-browser":"browserify ./lib/index.js --standalone WavDecoder --outfile build/wav-decoder.js","build-minify":"uglifyjs build/wav-decoder.js -m -r self -o build/wav-decoder.min.js","build-to5":"babel src --out-dir lib","cover":"babel-node node_modules/.bin/isparta cover --report text --report html --report lcov node_modules/.bin/_mocha","lint":"jshint src test --reporter node_modules/jshint-stylish/stylish.js","test":"mocha --require espower-babel/guess","travis":"npm run lint && npm run test"},"gitHead":"b32bf892e01b1bda3b760e27c4040a766185d90b","_id":"wav-decoder@0.2.0","_shasum":"19b148541b1bca306b58fc372c15b4d710955ccb","_from":".","_npmVersion":"2.7.0","_nodeVersion":"0.11.14","_npmUser":{"name":"mohayonao","email":"mohayonao@gmail.com"},"maintainers":[{"name":"mohayonao","email":""}],"dist":{"shasum":"19b148541b1bca306b58fc372c15b4d710955ccb","size":3590,"noattachment":false,"key":"/wav-decoder/-/wav-decoder-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/wav-decoder/download/wav-decoder-0.2.0.tgz"},"directories":{},"publish_time":1426715254108,"_hasShrinkwrap":false,"_cnpm_publish_time":1426715254108,"_cnpmcore_publish_time":"2021-12-17T11:58:36.466Z"},"0.1.1":{"name":"wav-decoder","description":"isomorphic wav data decoder","version":"0.1.1","author":{"name":"Nao Yonamine","email":"mohayonao@gmail.com"},"bugs":{"url":"https://github.com/mohayonao/wav-decoder/issues"},"dependencies":{"inline-worker":"^0.1.0"},"devDependencies":{"babel":"^4.7.12","browserify":"^9.0.3","espower-babel":"^1.4.0","isparta":"^2.2.0","jshint":"^2.6.3","jshint-stylish":"^1.0.1","mocha":"^2.2.1","power-assert":"^0.10.2","uglify-js":"^2.4.17"},"files":["package.json","README.md","lib"],"homepage":"https://github.com/mohayonao/wav-decoder/","keywords":["decode","isomorphic","wav"],"licenses":"MIT","main":"./lib/index.js","peerDependencies":{"audiodata":"*"},"repository":{"type":"git","url":"https://github.com/mohayonao/wav-decoder.git"},"scripts":{"build":"npm run build-to5 && npm run build-browser && npm run build-minify","build-browser":"browserify ./lib/index.js --standalone WavDecoder --outfile build/wav-decoder.js","build-minify":"uglifyjs build/wav-decoder.js -m -r self -o build/wav-decoder.min.js","build-to5":"babel src --out-dir lib","cover":"babel-node node_modules/.bin/isparta cover --report text --report html --report lcov node_modules/.bin/_mocha","lint":"jshint src test --reporter node_modules/jshint-stylish/stylish.js","test":"mocha --require espower-babel/guess","travis":"npm run lint && npm run test"},"gitHead":"5e8e3a07b85edc48f3af3b79b3022c8ff02cb8c5","_id":"wav-decoder@0.1.1","_shasum":"53095e6e3164978275cbf2fc9fa6712b0838276a","_from":".","_npmVersion":"2.7.0","_nodeVersion":"0.11.14","_npmUser":{"name":"mohayonao","email":"mohayonao@gmail.com"},"maintainers":[{"name":"mohayonao","email":""}],"dist":{"shasum":"53095e6e3164978275cbf2fc9fa6712b0838276a","size":3506,"noattachment":false,"key":"/wav-decoder/-/wav-decoder-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/wav-decoder/download/wav-decoder-0.1.1.tgz"},"directories":{},"publish_time":1426591758506,"_hasShrinkwrap":false,"_cnpm_publish_time":1426591758506,"_cnpmcore_publish_time":"2021-12-17T11:58:36.694Z"},"0.1.0":{"name":"wav-decoder","description":"isomorphic wav data decoder","version":"0.1.0","author":{"name":"Nao Yonamine","email":"mohayonao@gmail.com"},"bugs":{"url":"https://github.com/mohayonao/wav-decoder/issues"},"dependencies":{"inline-worker":"^0.1.0"},"devDependencies":{"babel":"^4.7.12","browserify":"^9.0.3","espower-babel":"^1.4.0","isparta":"^2.2.0","jshint":"^2.6.3","jshint-stylish":"^1.0.1","mocha":"^2.2.1","power-assert":"^0.10.2","uglify-js":"^2.4.17"},"files":["package.json","README.md","lib"],"homepage":"https://github.com/mohayonao/wav-decoder/","keywords":["decode","isomorphic","wav"],"licenses":"MIT","main":"./lib/index.js","peerDependencies":{"audiodata":"*"},"repository":{"type":"git","url":"https://github.com/mohayonao/wav-decoder.git"},"scripts":{"build":"npm run build-to5 && npm run build-browser && npm run build-minify","build-browser":"browserify ./lib/index.js --standalone WavDecoder --outfile build/wav-decoder.js","build-minify":"uglifyjs build/wav-decoder.js -m -r self -o build/wav-decoder.min.js","build-to5":"babel src --out-dir lib","cover":"babel-node node_modules/.bin/isparta cover --report text --report html --report lcov node_modules/.bin/_mocha","lint":"jshint src test --reporter node_modules/jshint-stylish/stylish.js","test":"mocha --require espower-babel/guess","travis":"npm run lint && npm run test"},"gitHead":"cf8051e20551308966116df6568866fba8f81fd4","_id":"wav-decoder@0.1.0","_shasum":"c81dbe926fcac30a1da91567de17ed5d95350a48","_from":".","_npmVersion":"2.7.0","_nodeVersion":"0.12.0","_npmUser":{"name":"mohayonao","email":"mohayonao@gmail.com"},"maintainers":[{"name":"mohayonao","email":""}],"dist":{"shasum":"c81dbe926fcac30a1da91567de17ed5d95350a48","size":3558,"noattachment":false,"key":"/wav-decoder/-/wav-decoder-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/wav-decoder/download/wav-decoder-0.1.0.tgz"},"directories":{},"publish_time":1426573422647,"_hasShrinkwrap":false,"_cnpm_publish_time":1426573422647,"_cnpmcore_publish_time":"2021-12-17T11:58:36.906Z"},"0.0.1":{"name":"wav-decoder","description":"isomorphic wav data decoder","version":"0.0.1","author":{"name":"Nao Yonamine","email":"mohayonao@gmail.com"},"bugs":{"url":"https://github.com/mohayonao/wav-decoder/issues"},"dependencies":{"audiodata":"*","inline-worker":"^0.1.0"},"devDependencies":{"babel":"^4.7.12","browserify":"^9.0.3","espower-babel":"^1.4.0","isparta":"^2.2.0","jshint":"^2.6.3","jshint-stylish":"^1.0.1","mocha":"^2.2.1","power-assert":"^0.10.2","uglify-js":"^2.4.17"},"files":["package.json","README.md","lib"],"homepage":"https://github.com/mohayonao/wav-decoder/","keywords":["decode","isomorphic","wav"],"licenses":"MIT","main":"./lib/index.js","repository":{"type":"git","url":"https://github.com/mohayonao/wav-decoder.git"},"scripts":{"build":"npm run build-to5 && npm run build-browser && npm run build-minify","build-browser":"browserify ./lib/index.js --standalone WavDecoder --outfile build/wav-decoder.js","build-minify":"uglifyjs build/wav-decoder.js -m -r self -o build/wav-decoder.min.js","build-to5":"babel src --out-dir lib","cover":"babel-node node_modules/.bin/isparta cover --report text --report html --report lcov node_modules/.bin/_mocha","lint":"jshint src test --reporter node_modules/jshint-stylish/stylish.js","test":"mocha --require espower-babel/guess","travis":"npm run lint && npm run test"},"gitHead":"129da3d3b133b210bc9c7f7525b647f49bf3675a","_id":"wav-decoder@0.0.1","_shasum":"d62e2213c72f28cc8c9c63b18bb7f567ec8b1e05","_from":".","_npmVersion":"2.7.0","_nodeVersion":"0.11.14","_npmUser":{"name":"mohayonao","email":"mohayonao@gmail.com"},"maintainers":[{"name":"mohayonao","email":""}],"dist":{"shasum":"d62e2213c72f28cc8c9c63b18bb7f567ec8b1e05","size":2802,"noattachment":false,"key":"/wav-decoder/-/wav-decoder-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/wav-decoder/download/wav-decoder-0.0.1.tgz"},"directories":{},"publish_time":1426517161437,"_hasShrinkwrap":false,"_cnpm_publish_time":1426517161437,"_cnpmcore_publish_time":"2021-12-17T11:58:37.088Z"}},"readme":"# wav-decoder\n[![Build Status](https://img.shields.io/travis/mohayonao/wav-decoder.svg?style=flat-square)](https://travis-ci.org/mohayonao/wav-decoder)\n[![NPM Version](https://img.shields.io/npm/v/wav-decoder.svg?style=flat-square)](https://www.npmjs.org/package/wav-decoder)\n[![License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](https://mohayonao.mit-license.org/)\n\n> promise-based wav decoder\n\n## Installation\n\n```\n$ npm install wav-decoder\n```\n\n## API\n\n- `decode(src: ArrayBuffer, [opts: object]): Promise<AudioData>`\n  - if provide an instance of `Buffer`, it is converted to `ArrayBuffer` like `Uint8Array.from(src).buffer` implicitly.\n  - `opts.symmetric` decode to symmetrical values (see [#14](https://github.com/mohayonao/wav-decoder/issues/14))\n- `decode.sync(src: ArrayBuffer, [opts: object]): AudioData`\n  - synchronous version\n\n##### Returns\n\n```js\ninterface AudioData {\n  sampleRate: number;\n  channelData: Float32Array[];\n}\n```\n\n## Usage\n\n```js\nconst fs = require(\"fs\");\nconst WavDecoder = require(\"wav-decoder\");\n\nconst readFile = (filepath) => {\n  return new Promise((resolve, reject) => {\n    fs.readFile(filepath, (err, buffer) => {\n      if (err) {\n        return reject(err);\n      }\n      return resolve(buffer);\n    });\n  });\n};\n\nreadFile(\"foobar.wav\").then((buffer) => {\n  return WavDecoder.decode(buffer);\n}).then(function(audioData) {\n  console.log(audioData.sampleRate);\n  console.log(audioData.channelData[0]); // Float32Array\n  console.log(audioData.channelData[1]); // Float32Array\n});\n```\n\n## License\nMIT\n","_attachments":{},"homepage":"https://github.com/mohayonao/wav-decoder/","bugs":{"url":"https://github.com/mohayonao/wav-decoder/issues"},"license":"MIT"}