{"_id":"node-wav","_rev":"4210641","name":"node-wav","description":"High performance WAV file decoder and encoder","dist-tags":{"latest":"0.0.2"},"maintainers":[{"name":"andreasgal","email":""}],"time":{"modified":"2026-03-04T17:05:36.000Z","created":"2016-07-16T20:50:12.918Z","0.0.2":"2016-08-25T18:19:40.186Z","0.0.1":"2016-07-16T20:50:12.918Z"},"users":{},"author":{"name":"Andreas Gal"},"repository":{"type":"git","url":"git+https://github.com/andreasgal/node-wav.git"},"versions":{"0.0.2":{"name":"node-wav","version":"0.0.2","description":"High performance WAV file decoder and encoder","main":"./index.js","scripts":{"test":"./node_modules/nodeunit/bin/nodeunit ./tests/test.js"},"repository":{"type":"git","url":"git+https://github.com/andreasgal/node-wav.git"},"keywords":["wav","decode"],"author":{"name":"Andreas Gal"},"license":"MIT","homepage":"https://github.com/andreasgal/node-wav","engines":{"node":">=4.4.0"},"dependencies":{},"devDependencies":{"nodeunit":"^0.9.1","wav-decoder":"^1.1.0","wav-encoder":"^1.1.0"},"gitHead":"8f2395cd348aa9e997a826289526b57074adfe6a","bugs":{"url":"https://github.com/andreasgal/node-wav/issues"},"_id":"node-wav@0.0.2","_shasum":"89cb63cf8cd66ec8ab455f5ba4864e5fcb4605e8","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"andreasgal","email":"andreas.gal@gmail.com"},"dist":{"shasum":"89cb63cf8cd66ec8ab455f5ba4864e5fcb4605e8","size":3699298,"noattachment":false,"key":"/node-wav/-/node-wav-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/node-wav/download/node-wav-0.0.2.tgz"},"maintainers":[{"name":"andreasgal","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/node-wav-0.0.2.tgz_1472149177210_0.9360977234318852"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T09:10:11.319Z","publish_time":1472149180186,"_cnpm_publish_time":1472149180186},"0.0.1":{"name":"node-wav","version":"0.0.1","description":"High performance WAV file decoder and encoder","main":"./index.js","scripts":{"test":"./node_modules/nodeunit/bin/nodeunit ./test.js"},"repository":{"type":"git","url":"git+https://github.com/andreasgal/node-wav.git"},"keywords":["wav","decode"],"author":{"name":"Andreas Gal"},"license":"MIT","homepage":"https://github.com/andreasgal/node-wav","engines":{"node":">=4.4.0"},"dependencies":{},"devDependencies":{"nodeunit":"^0.9.1","wav-decoder":"^1.1.0","wav-encoder":"^1.1.0"},"gitHead":"1f624f8c0a6b1862ad92cc0849a8018163564402","bugs":{"url":"https://github.com/andreasgal/node-wav/issues"},"_id":"node-wav@0.0.1","_shasum":"8db972f039c164f425d507c3b28a306d3e63662d","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0","_npmUser":{"name":"andreasgal","email":"andreas.gal@gmail.com"},"dist":{"shasum":"8db972f039c164f425d507c3b28a306d3e63662d","size":1857929,"noattachment":false,"key":"/node-wav/-/node-wav-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/node-wav/download/node-wav-0.0.1.tgz"},"maintainers":[{"name":"andreasgal","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/node-wav-0.0.1.tgz_1468702209699_0.32829880085773766"},"directories":{},"_cnpmcore_publish_time":"2021-12-20T09:10:09.059Z","publish_time":1468702212918,"_cnpm_publish_time":1468702212918}},"readme":"node-wav\n========\n\nHigh performance WAV decoder and encoder. The decoder is up to 750x faster than\nthe 'wav-decoder' npm module.\n\nIn addition, in contrast to 'wav-decoder' the result is returned directly instead\nof with a promise.\n\nThis module combines the functionality of 'wav-decoder' and 'wav-encoder'.\n\nUsage\n-----\n\n    let fs = require('fs');\n    let wav = require('node-wav');\n\n    let buffer = fs.readFileSync('file.wav');\n    let result = wav.decode(buffer);\n    console.log(result.sampleRate);\n    console.log(result.channelData); // array of Float32Arrays\n\n    wav.encode(result.channelData, { sampleRate: result.sampleRate, float: true, bitDepth: 32 });\n\nData format\n-----------\n\nData is always returned as Float32Arrays. While reading and writing 64-bit float\nWAV files is supported, data is truncated to 32-bit floats.\n\nEndianness\n----------\n\nThis module assumes a little endian CPU, which is true for pretty much every processor\nthese days (in particular Intel and ARM).","_attachments":{},"homepage":"https://github.com/andreasgal/node-wav","bugs":{"url":"https://github.com/andreasgal/node-wav/issues"},"license":"MIT"}