{"_id":"is-wav@1.1.3","bugs":{"url":"https://github.com/hemanth/is-wav/issues"},"dist":{"shasum":"2a788e26d2e9d927cb116bcda885637275aa9822","tarball":"http://registry-npm.ywwl.com/is-wav/download/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=="}],"size":1732,"noattachment":false,"key":"/is-wav/-/is-wav-1.1.3.tgz"},"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,"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","publish_time":1791245343581,"_cnpm_publish_time":1791245343581,"dist-tags":{"latest":"1.1.3"}}