{"_id":"is-wav","_rev":"19-12f99193d0fbbd0235f8a46116e59628","name":"is-wav","dist-tags":{"latest":"1.1.3"},"versions":{"0.1.0":{"name":"is-wav","version":"0.1.0","keywords":["wav","audio","type","detect","check","is","binary","buffer","uint8array"],"author":{"url":"http://h3manth.com","name":"Hemanth.HM","email":"hemanth.hm@gmail.com"},"license":"MIT","_id":"is-wav@0.1.0","maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"homepage":"https://github.com/hemanth/is-wav","bugs":{"url":"https://github.com/hemanth/is-wav/issues"},"dist":{"shasum":"8832dbe708ea0990fe907458516ffa97b4eae6d7","tarball":"https://registry.npmjs.org/is-wav/-/is-wav-0.1.0.tgz","integrity":"sha512-VJ4cghu4UQqrQfTh4oaWI9Ymy15/9iidhc0/xOqF6nVGw0sIxRfsF78NJPkk9mj/dKaY8R7HJlFfAZrdJtSMZg==","signatures":[{"sig":"MEYCIQCeWYe+qBashlNxNJ/uZW7iyq1xpwpNUzq131RZ+xtmVAIhAIUEe893yJxDaQFp/xmr3Ui4pPt8Bogvyjs8CMqfn7TZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"repository":{"url":"git://github.com/hemanth/is-wav","type":"git"},"_npmVersion":"1.4.3","description":"Check if a Buffer/Uint8Array is a wav file.","devDependencies":{"mocha":"*","browserify":"^3.0.0","read-chunk":"^0.1.0"},"directories":{}},"0.1.1":{"name":"is-wav","version":"0.1.1","keywords":["wav","audio","type","detect","check","is","binary","buffer","uint8array"],"author":{"url":"http://h3manth.com","name":"Hemanth.HM","email":"hemanth.hm@gmail.com"},"license":"MIT","_id":"is-wav@0.1.1","maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"homepage":"https://github.com/hemanth/is-wav","bugs":{"url":"https://github.com/hemanth/is-wav/issues"},"dist":{"shasum":"8349d575a8ccf3dbb07b1fa94c3c9649643067b1","tarball":"https://registry.npmjs.org/is-wav/-/is-wav-0.1.1.tgz","integrity":"sha512-YPEMrUpC2Pg0bbvuPWYeJScxPkHLP7M83UM9zwIlJ9/r/wYqyWGl7Z8VOdWUWlsibPPTNJlWK0g5W+wZeCNQbQ==","signatures":[{"sig":"MEUCIQDIfM1ChJUGhDKy3CY93OiwAm8CZ4sbZf0i5QOswZzcMQIgeHtzCSem5Wx0oEk5vg5OLEYB0mQcTuGkXLQfm86E1Wk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"8349d575a8ccf3dbb07b1fa94c3c9649643067b1","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"repository":{"url":"git://github.com/hemanth/is-wav","type":"git"},"_npmVersion":"1.4.7","description":"Check if a Buffer/Uint8Array is a wav file.","devDependencies":{"mocha":"*","browserify":"^3.0.0","read-chunk":"^0.1.0"},"directories":{}},"0.1.2":{"name":"is-wav","version":"0.1.2","keywords":["wav","audio","type","detect","check","is","binary","buffer","uint8array"],"author":{"url":"http://h3manth.com","name":"Hemanth.HM","email":"hemanth.hm@gmail.com"},"license":"MIT","_id":"is-wav@0.1.2","maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"homepage":"https://github.com/hemanth/is-wav","bugs":{"url":"https://github.com/hemanth/is-wav/issues"},"dist":{"shasum":"0320c842d76719ee8be005f8c4d7f74f44898b85","tarball":"https://registry.npmjs.org/is-wav/-/is-wav-0.1.2.tgz","integrity":"sha512-VaFuRhM/IoBw/fjiaGjkO7PjM8RItdImIKLfPJR7wPVV7obXq3X476zlM7KuPWcTBBgHYj6JIEkQ3Gb/2JQv7A==","signatures":[{"sig":"MEYCIQDV5Y89ukGcmDOj7N98kBfOTaQ/hlKBNI+r8PhwlhaEcgIhAJAF3MImTdwDF/EJDPhu/APMh8j4Z/ZfBxzfhj5flbDG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"0320c842d76719ee8be005f8c4d7f74f44898b85","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"repository":{"url":"git://github.com/hemanth/is-wav","type":"git"},"_npmVersion":"1.4.7","description":"Check if a Buffer/Uint8Array is a wav file.","devDependencies":{"mocha":"*","browserify":"^3.0.0","read-chunk":"^0.1.0"},"directories":{}},"0.2.0":{"name":"is-wav","version":"0.2.0","keywords":["wav","audio","type","detect","check","is","binary","buffer","uint8array"],"author":{"url":"http://h3manth.com","name":"Hemanth.HM","email":"hemanth.hm@gmail.com"},"license":"MIT","_id":"is-wav@0.2.0","maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"homepage":"https://github.com/hemanth/is-wav","bugs":{"url":"https://github.com/hemanth/is-wav/issues"},"dist":{"shasum":"df17e02b001de8d1b679830874f5ea9e52e5996d","tarball":"https://registry.npmjs.org/is-wav/-/is-wav-0.2.0.tgz","integrity":"sha512-ocneFHNibCWgZEv6uM+XeFceJ9e0CJnVJo6VqDKtLZ/rJhtAnwn9WuBaCKMNmuYBrM5x2/snAB+4ZdwS3/qEtw==","signatures":[{"sig":"MEUCIA1oAnwzaPuf9yCfVa5laLWv8iCyYOnuA9rW+/YhGgruAiEA30nt7raDjClIKGlczpSIWyRLvikv/45rCgGg/Flo35Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"df17e02b001de8d1b679830874f5ea9e52e5996d","engines":{"node":">=0.10.0"},"gitHead":"df9236dd18dc76e59c8adc130e4e84d0c9e7b5d2","scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"repository":{"url":"https://github.com/hemanth/is-wav","type":"git"},"_npmVersion":"1.4.28","description":"Check if a Buffer/Uint8Array is a wav file.","devDependencies":{"mocha":"*","browserify":"^6.3.2","read-chunk":"^1.0.0"},"directories":{}},"0.3.0":{"name":"is-wav","version":"0.3.0","keywords":["wav","audio","type","detect","check","is","binary","buffer","uint8array"],"author":{"url":"http://h3manth.com","name":"Hemanth.HM","email":"hemanth.hm@gmail.com"},"license":"MIT","_id":"is-wav@0.3.0","maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"homepage":"https://github.com/hemanth/is-wav","bugs":{"url":"https://github.com/hemanth/is-wav/issues"},"dist":{"shasum":"1f9f3234ad546481933a0602f74b1eab2f06cc02","tarball":"https://registry.npmjs.org/is-wav/-/is-wav-0.3.0.tgz","integrity":"sha512-wvUCRFjyjrBANzVS71qyADMDY2FjnBC8wy6Qq8p3raTkKppgwbhHXGQc6+5TEIFt1vF195Wabr8uGCrVD4XNRg==","signatures":[{"sig":"MEQCIFpzrBQTf3lhBdEs9zuDv2lxv6uZ34tCX28zL3pZ3XWQAiBO6dmS0iIKjKC9Ala8/Y3xyA+Grljap0yWigcMODtsJg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"1f9f3234ad546481933a0602f74b1eab2f06cc02","engines":{"node":">=0.10.0"},"gitHead":"3e9b294ed3c00ccbe4ecb34ab162936b7cd82259","scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"repository":{"url":"https://github.com/hemanth/is-wav","type":"git"},"_npmVersion":"2.1.6","description":"Check if a Buffer/Uint8Array is a wav file.","_nodeVersion":"0.11.13","devDependencies":{"mocha":"*","browserify":"^7.0.0","read-chunk":"^1.0.0"},"directories":{}},"1.0.0":{"name":"is-wav","version":"1.0.0","keywords":["wav","audio","type","detect","check","is","binary","buffer","uint8array"],"author":{"url":"http://h3manth.com","name":"Hemanth.HM","email":"hemanth.hm@gmail.com"},"license":"MIT","_id":"is-wav@1.0.0","maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"homepage":"https://github.com/hemanth/is-wav","bugs":{"url":"https://github.com/hemanth/is-wav/issues"},"dist":{"shasum":"cb05c58101d6a16da50c357636142554567d29ba","tarball":"https://registry.npmjs.org/is-wav/-/is-wav-1.0.0.tgz","integrity":"sha512-aR1JOiW0m6Fs4a8r8aM35X1/x/uV0ZW24Zit4svYx+J8o0tDxJPY0CddhqU4r+1dIyvZBQo/n4F6XcR8YYeoaA==","signatures":[{"sig":"MEQCIGW2nQZtI4eFCh+ApaOlefbqkVyrTXDawZxSE/XhNWUPAiAcFmK/Ku6Nvu10DNlakeGVyGS9EILU5Tjpr+pD8hd+vw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"cb05c58101d6a16da50c357636142554567d29ba","engines":{"node":">=0.10.0"},"gitHead":"730811ad78c7dd7eb3acb1d0fb3a46e9cbc97ef9","scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"repository":{"url":"https://github.com/hemanth/is-wav","type":"git"},"_npmVersion":"2.1.6","description":"Check if a Buffer/Uint8Array is a wav file.","_nodeVersion":"0.11.13","devDependencies":{"mocha":"*","browserify":"^7.0.0","read-chunk":"^1.0.0"},"directories":{}},"1.1.0":{"name":"is-wav","version":"1.1.0","keywords":["wav","audio","type","detect","check","is","binary","buffer","uint8array"],"author":{"url":"http://h3manth.com","name":"Hemanth.HM","email":"hemanth.hm@gmail.com"},"license":"MIT","_id":"is-wav@1.1.0","maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"homepage":"https://github.com/hemanth/is-wav","bugs":{"url":"https://github.com/hemanth/is-wav/issues"},"dist":{"shasum":"9150d4304d36aa50fb75d6014195d3065c29e286","tarball":"https://registry.npmjs.org/is-wav/-/is-wav-1.1.0.tgz","integrity":"sha512-zOrim4FGnc3RK3a7nEszOC32olF5x8IFuFXYapyw6N38j8wlNKnMISuViN3yF9L3XHMtEV4ejj0gvLo7r7ZTEA==","signatures":[{"sig":"MEYCIQCq6uu7WIwmFqZVFsaeU8FpUsR8W4nxEInNfhd7Y1517AIhALWsWmoyr46MlvvVKVxJcbQTRUgN+Nlv1i+C9Hnd73A7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"9150d4304d36aa50fb75d6014195d3065c29e286","engines":{"node":">=0.10.0"},"gitHead":"2154378a47467487c443ceb5f3a776fbcc4f20c0","scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"repository":{"url":"https://github.com/hemanth/is-wav","type":"git"},"_npmVersion":"1.4.28","description":"Check if a Buffer/Uint8Array is a wav file.","devDependencies":{"mocha":"*","browserify":"^8.1.0","read-chunk":"^1.0.0"},"directories":{}},"1.1.2":{"name":"is-wav","version":"1.1.2","keywords":["wav","audio","type","detect","check","is","binary","buffer","uint8array"],"author":{"url":"http://h3manth.com","name":"Hemanth.HM","email":"hemanth.hm@gmail.com"},"license":"MIT","_id":"is-wav@1.1.2","maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"homepage":"https://github.com/hemanth/is-wav#readme","bugs":{"url":"https://github.com/hemanth/is-wav/issues"},"dist":{"shasum":"d9caccf355a834d7f5b828f009811d097d54050e","tarball":"https://registry.npmjs.org/is-wav/-/is-wav-1.1.2.tgz","integrity":"sha512-gLOkWlnwd//lRpIhe2u3Ow3mMls/4DIvoLuXwfxpOd/JBuql099f0ZTxwxqHn9Lz+ZG+7ZIMKPyIKG3D7Fot7A==","signatures":[{"sig":"MEQCIHaIo3qnpgT2r79DyUMxvDCXjrw2LGHnXFvhc60ZJJ+6AiBRJCaJ0vVJDbQzZLR9bvqOyJgz+aofmq6/jHaRrcPH2g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"d9caccf355a834d7f5b828f009811d097d54050e","engines":{"node":">=4"},"gitHead":"0f8e31416c34103cdfe7752d0a92ae16db9a272d","scripts":{"test":"mocha","browser":"browserify -s $npm_package_name -o browser.js ."},"_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com"},"repository":{"url":"git+https://github.com/hemanth/is-wav.git","type":"git"},"_npmVersion":"2.14.9","description":"Check if a Buffer/Uint8Array is a wav file.","_nodeVersion":"0.12.10","devDependencies":{"mocha":"*","browserify":"^8.1.0","read-chunk":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/is-wav-1.1.2.tgz_1461390546876_0.5449113694485277","host":"packages-16-east.internal.npmjs.com"},"directories":{}},"1.1.3":{"_id":"is-wav@1.1.3","bugs":{"url":"https://github.com/hemanth/is-wav/issues"},"dist":{"shasum":"2a788e26d2e9d927cb116bcda885637275aa9822","tarball":"https://registry.npmjs.org/is-wav/-/is-wav-1.1.3.tgz","integrity":"sha512-DORUItB3VpzeNCNKJfLoHRaoI+9Kc63cc6dd5qwzPjTc+A4AZ1FHCxmT/9txWacpa+J3gQqYrjvbVXDnLwkwnA==","fileCount":4,"unpackedSize":2969,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDrGQW1t1ktLHkS448KlPHfdnKycCgoFbxgX9nTHDCTfAiA0RXKyuN6zDBDNwnOoLED1S519Uiqqujxi/nTOO19Kpg=="}]},"name":"is-wav","author":{"url":"http://h3manth.com","name":"Hemanth.HM","email":"hemanth.hm@gmail.com"},"engines":{"node":">=4"},"gitHead":"58002abcf7707935f5b0641b718140916e675013","license":"MIT","scripts":{"test":"mocha --exit test.js","browser":"browserify -s $npm_package_name -o browser.js ."},"version":"1.1.3","_npmUser":{"name":"hemanth","email":"hemanth.hm@gmail.com","approver":{"name":"hemanth","email":"hemanth.hm@gmail.com"}},"homepage":"https://github.com/hemanth/is-wav#readme","keywords":["wav","audio","type","detect","check","is","binary","buffer","uint8array"],"repository":{"url":"git+https://github.com/hemanth/is-wav.git","type":"git"},"_npmVersion":"11.19.0","description":"Check if a Buffer/Uint8Array is a wav file.","directories":{},"maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"_nodeVersion":"26.8.1","devDependencies":{"mocha":"^11.7.0","browserify":"^17.0.1","read-chunk":"^3.2.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/is-wav_1.1.3_1791245343468_0.3277127648667819"},"_hasShrinkwrap":false}},"time":{"created":"2014-04-27T06:09:48.248Z","modified":"2026-10-06T00:09:03.787Z","0.1.0":"2014-04-27T06:09:48.248Z","0.1.1":"2014-04-29T13:44:08.958Z","0.1.2":"2014-04-30T12:28:46.905Z","0.2.0":"2014-11-22T13:04:25.510Z","0.3.0":"2014-12-14T02:52:04.589Z","1.0.0":"2014-12-14T02:58:01.378Z","1.1.0":"2015-01-14T05:37:55.560Z","1.1.2":"2016-04-23T05:49:09.895Z","1.1.3":"2026-10-06T00:09:03.581Z"},"bugs":{"url":"https://github.com/hemanth/is-wav/issues"},"author":{"url":"http://h3manth.com","name":"Hemanth.HM","email":"hemanth.hm@gmail.com"},"license":"MIT","homepage":"https://github.com/hemanth/is-wav#readme","keywords":["wav","audio","type","detect","check","is","binary","buffer","uint8array"],"repository":{"url":"git+https://github.com/hemanth/is-wav.git","type":"git"},"description":"Check if a Buffer/Uint8Array is a wav file.","maintainers":[{"name":"hemanth","email":"hemanth.hm@gmail.com"}],"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","readmeFilename":"readme.md"}