{"_id":"is-wav","_rev":"51054","name":"is-wav","description":"Check if a Buffer/Uint8Array is a wav file.","dist-tags":{"latest":"1.1.2"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"time":{"modified":"2021-06-03T10:15:35.000Z","created":"2014-04-27T06:09:48.248Z","1.1.2":"2016-04-23T05:49:09.895Z","1.1.0":"2015-01-14T05:37:55.560Z","1.0.0":"2014-12-14T02:58:01.378Z","0.3.0":"2014-12-14T02:52:04.589Z","0.2.0":"2014-11-22T13:04:25.510Z","0.1.2":"2014-04-30T12:28:46.905Z","0.1.1":"2014-04-29T13:44:08.958Z","0.1.0":"2014-04-27T06:09:48.248Z"},"users":{},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"repository":{"type":"git","url":"git+https://github.com/hemanth/is-wav.git"},"versions":{"1.1.2":{"name":"is-wav","version":"1.1.2","description":"Check if a Buffer/Uint8Array is a wav file.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/hemanth/is-wav.git"},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"engines":{"node":">=4"},"scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"files":["index.js"],"keywords":["wav","audio","type","detect","check","is","binary","buffer","uint8array"],"devDependencies":{"browserify":"^8.1.0","mocha":"*","read-chunk":"^2.0.0"},"gitHead":"0f8e31416c34103cdfe7752d0a92ae16db9a272d","bugs":{"url":"https://github.com/hemanth/is-wav/issues"},"homepage":"https://github.com/hemanth/is-wav#readme","_id":"is-wav@1.1.2","_shasum":"d9caccf355a834d7f5b828f009811d097d54050e","_from":".","_npmVersion":"2.14.9","_nodeVersion":"0.12.10","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"dist":{"shasum":"d9caccf355a834d7f5b828f009811d097d54050e","size":2380,"noattachment":false,"key":"/is-wav/-/is-wav-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-wav/download/is-wav-1.1.2.tgz"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/is-wav-1.1.2.tgz_1461390546876_0.5449113694485277"},"directories":{},"publish_time":1461390549895,"_cnpm_publish_time":1461390549895,"_hasShrinkwrap":false},"1.1.0":{"name":"is-wav","version":"1.1.0","description":"Check if a Buffer/Uint8Array is a wav file.","license":"MIT","repository":{"type":"git","url":"https://github.com/hemanth/is-wav"},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"files":["index.js"],"keywords":["wav","audio","type","detect","check","is","binary","buffer","uint8array"],"devDependencies":{"browserify":"^8.1.0","mocha":"*","read-chunk":"^1.0.0"},"gitHead":"2154378a47467487c443ceb5f3a776fbcc4f20c0","bugs":{"url":"https://github.com/hemanth/is-wav/issues"},"homepage":"https://github.com/hemanth/is-wav","_id":"is-wav@1.1.0","_shasum":"9150d4304d36aa50fb75d6014195d3065c29e286","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"dist":{"shasum":"9150d4304d36aa50fb75d6014195d3065c29e286","size":1056,"noattachment":false,"key":"/is-wav/-/is-wav-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-wav/download/is-wav-1.1.0.tgz"},"directories":{},"publish_time":1421213875560,"_cnpm_publish_time":1421213875560,"_hasShrinkwrap":false},"1.0.0":{"name":"is-wav","version":"1.0.0","description":"Check if a Buffer/Uint8Array is a wav file.","license":"MIT","repository":{"type":"git","url":"https://github.com/hemanth/is-wav"},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"files":["index.js"],"keywords":["wav","audio","type","detect","check","is","binary","buffer","uint8array"],"devDependencies":{"browserify":"^7.0.0","mocha":"*","read-chunk":"^1.0.0"},"gitHead":"730811ad78c7dd7eb3acb1d0fb3a46e9cbc97ef9","bugs":{"url":"https://github.com/hemanth/is-wav/issues"},"homepage":"https://github.com/hemanth/is-wav","_id":"is-wav@1.0.0","_shasum":"cb05c58101d6a16da50c357636142554567d29ba","_from":".","_npmVersion":"2.1.6","_nodeVersion":"0.11.13","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"dist":{"shasum":"cb05c58101d6a16da50c357636142554567d29ba","size":1631,"noattachment":false,"key":"/is-wav/-/is-wav-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-wav/download/is-wav-1.0.0.tgz"},"directories":{},"publish_time":1418525881378,"_cnpm_publish_time":1418525881378,"_hasShrinkwrap":false},"0.3.0":{"name":"is-wav","version":"0.3.0","description":"Check if a Buffer/Uint8Array is a wav file.","license":"MIT","repository":{"type":"git","url":"https://github.com/hemanth/is-wav"},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"files":["index.js"],"keywords":["wav","audio","type","detect","check","is","binary","buffer","uint8array"],"devDependencies":{"browserify":"^7.0.0","mocha":"*","read-chunk":"^1.0.0"},"gitHead":"3e9b294ed3c00ccbe4ecb34ab162936b7cd82259","bugs":{"url":"https://github.com/hemanth/is-wav/issues"},"homepage":"https://github.com/hemanth/is-wav","_id":"is-wav@0.3.0","_shasum":"1f9f3234ad546481933a0602f74b1eab2f06cc02","_from":".","_npmVersion":"2.1.6","_nodeVersion":"0.11.13","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"dist":{"shasum":"1f9f3234ad546481933a0602f74b1eab2f06cc02","size":1749,"noattachment":false,"key":"/is-wav/-/is-wav-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-wav/download/is-wav-0.3.0.tgz"},"directories":{},"publish_time":1418525524589,"_cnpm_publish_time":1418525524589,"_hasShrinkwrap":false},"0.2.0":{"name":"is-wav","version":"0.2.0","description":"Check if a Buffer/Uint8Array is a wav file.","license":"MIT","repository":{"type":"git","url":"https://github.com/hemanth/is-wav"},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"files":["index.js"],"keywords":["wav","audio","type","detect","check","is","binary","buffer","uint8array"],"devDependencies":{"browserify":"^6.3.2","mocha":"*","read-chunk":"^1.0.0"},"gitHead":"df9236dd18dc76e59c8adc130e4e84d0c9e7b5d2","bugs":{"url":"https://github.com/hemanth/is-wav/issues"},"homepage":"https://github.com/hemanth/is-wav","_id":"is-wav@0.2.0","_shasum":"df17e02b001de8d1b679830874f5ea9e52e5996d","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"dist":{"shasum":"df17e02b001de8d1b679830874f5ea9e52e5996d","size":1059,"noattachment":false,"key":"/is-wav/-/is-wav-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-wav/download/is-wav-0.2.0.tgz"},"directories":{},"publish_time":1416661465510,"_cnpm_publish_time":1416661465510,"_hasShrinkwrap":false},"0.1.2":{"name":"is-wav","version":"0.1.2","description":"Check if a Buffer/Uint8Array is a wav file.","license":"MIT","repository":{"type":"git","url":"git://github.com/hemanth/is-wav"},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"files":["index.js"],"keywords":["wav","audio","type","detect","check","is","binary","buffer","uint8array"],"devDependencies":{"browserify":"^3.0.0","mocha":"*","read-chunk":"^0.1.0"},"bugs":{"url":"https://github.com/hemanth/is-wav/issues"},"homepage":"https://github.com/hemanth/is-wav","_id":"is-wav@0.1.2","_shasum":"0320c842d76719ee8be005f8c4d7f74f44898b85","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"dist":{"shasum":"0320c842d76719ee8be005f8c4d7f74f44898b85","size":1071,"noattachment":false,"key":"/is-wav/-/is-wav-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-wav/download/is-wav-0.1.2.tgz"},"directories":{},"publish_time":1398860926905,"_cnpm_publish_time":1398860926905,"_hasShrinkwrap":false},"0.1.1":{"name":"is-wav","version":"0.1.1","description":"Check if a Buffer/Uint8Array is a wav file.","license":"MIT","repository":{"type":"git","url":"git://github.com/hemanth/is-wav"},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"files":["index.js"],"keywords":["wav","audio","type","detect","check","is","binary","buffer","uint8array"],"devDependencies":{"browserify":"^3.0.0","mocha":"*","read-chunk":"^0.1.0"},"bugs":{"url":"https://github.com/hemanth/is-wav/issues"},"homepage":"https://github.com/hemanth/is-wav","_id":"is-wav@0.1.1","_shasum":"8349d575a8ccf3dbb07b1fa94c3c9649643067b1","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"dist":{"shasum":"8349d575a8ccf3dbb07b1fa94c3c9649643067b1","size":1068,"noattachment":false,"key":"/is-wav/-/is-wav-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-wav/download/is-wav-0.1.1.tgz"},"directories":{},"publish_time":1398779048958,"_cnpm_publish_time":1398779048958,"_hasShrinkwrap":false},"0.1.0":{"name":"is-wav","version":"0.1.0","description":"Check if a Buffer/Uint8Array is a wav file.","license":"MIT","repository":{"type":"git","url":"git://github.com/hemanth/is-wav"},"author":{"name":"Hemanth.HM","email":"hemanth.hm@gmail.com","url":"http://h3manth.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"files":["index.js"],"keywords":["wav","audio","type","detect","check","is","binary","buffer","uint8array"],"devDependencies":{"browserify":"^3.0.0","mocha":"*","read-chunk":"^0.1.0"},"bugs":{"url":"https://github.com/hemanth/is-wav/issues"},"homepage":"https://github.com/hemanth/is-wav","_id":"is-wav@0.1.0","dist":{"shasum":"8832dbe708ea0990fe907458516ffa97b4eae6d7","size":1065,"noattachment":false,"key":"/is-wav/-/is-wav-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-wav/download/is-wav-0.1.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"directories":{},"publish_time":1398578988248,"_cnpm_publish_time":1398578988248,"_hasShrinkwrap":false}},"readme":"# is-wav [![Build Status](https://travis-ci.org/hemanth/is-wav.svg?branch=master)](https://travis-ci.org/hemanth/is-wav)\n\n> Check if a Buffer/Uint8Array is a WAV file.\n\n## Install\n\n```sh\n$ npm install --save is-wav\n```\n\n```sh\n$ bower install --save is-wav\n```\n\n```sh\n$ component install hemanth/is-wav\n```\n\n\n## Usage\n\n##### Node.js\n\n```js\nvar readChunk = require('read-chunk'); // npm install read-chunk\nvar isWav = require('is-wav');\nvar buffer = readChunk('meow.wav', 0, 12);\n\nisWav(buffer);\n//=> true\n```\n\n##### Browser\n\n```js\nvar xhr = new XMLHttpRequest();\nxhr.open('GET', 'meow.wav');\nxhr.responseType = 'arraybuffer';\n\nxhr.onload = function () {\n\tisWav(new Uint8Array(this.response));\n\t//=> true\n};\n\nxhr.send();\n```\n\n\n## API\n\n### isWav(buffer)\n\nAccepts a Buffer (Node.js) or Uint8Array.\n\nIt only needs the first 12 bytes.\n\n\n## License\n\nMIT © [Hemanth.HM](http://h3manth.com)\n","_attachments":{},"homepage":"https://github.com/hemanth/is-wav#readme","bugs":{"url":"https://github.com/hemanth/is-wav/issues"},"license":"MIT"}