{"_id":"cjopus","_rev":"6-59360bf9a8f99d67fd7cb285e5434e65","name":"cjopus","description":"Emscripten bindings for libopus. Encode / Decode your audio to opus with pure JS.","dist-tags":{"latest":"0.0.4"},"versions":{"0.0.1":{"name":"cjopus","version":"0.0.1","description":"Emscripten bindings for libopus. Encode / Decode your audio to opus with pure JS.","main":"./lib/Opus.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/izy521/CJOpus.git"},"keywords":["Opus","libopus","Emscripten","Audio","LLVM"],"author":{"name":"izy521"},"license":"MIT","bugs":{"url":"https://github.com/izy521/CJOpus/issues"},"homepage":"https://github.com/izy521/CJOpus#readme","gitHead":"5e7575d7bb86acdc12c5ece715173755c55b294f","_id":"cjopus@0.0.1","_shasum":"a25ff3ea3ea9a9ef97e17d7fbcb9d088c7df0556","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.12.0","_npmUser":{"name":"izy521","email":"kyekye321@gmail.com"},"dist":{"shasum":"a25ff3ea3ea9a9ef97e17d7fbcb9d088c7df0556","tarball":"https://registry.npmjs.org/cjopus/-/cjopus-0.0.1.tgz","integrity":"sha512-giBgcIVSpYievDGLaOZ9xY/Jm3OGTZsilZYa2jwJznQ8EVei1aLODlHN9N545lyQbfyUTzJI5RmbQ4eKHeCAdw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDboAYfVYl3k1eYXfGNWR/QG0m6rFiNPO1b4suwvGQdrwIgNd9HsQ7e24YqW0IjXbKHsH14Ew9CJNQsg/g0zjFkX8E="}]},"maintainers":[{"name":"izy521","email":"kyekye321@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/cjopus-0.0.1.tgz_1471390931272_0.5432521188631654"}},"0.0.2":{"name":"cjopus","version":"0.0.2","description":"Emscripten bindings for libopus. Encode / Decode your audio to opus with pure JS.","main":"./lib/Opus.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/izy521/CJOpus.git"},"keywords":["Opus","libopus","Emscripten","Audio","LLVM"],"author":{"name":"izy521"},"license":"MIT","bugs":{"url":"https://github.com/izy521/CJOpus/issues"},"homepage":"https://github.com/izy521/CJOpus#readme","_id":"cjopus@0.0.2","_shasum":"90f24775f3b4dfe1054e977f2d5659ce72798cf3","_from":".","_npmVersion":"3.3.4","_nodeVersion":"5.10.1","_npmUser":{"name":"izy521","email":"kyekye321@gmail.com"},"dist":{"shasum":"90f24775f3b4dfe1054e977f2d5659ce72798cf3","tarball":"https://registry.npmjs.org/cjopus/-/cjopus-0.0.2.tgz","integrity":"sha512-mJyMw7kMfaRBzLKMeFfdNa6hGB6b2JSTuNom1wULJlQl8obVHuEKfBo/ikwNwAblvJ+rc2GRoWAKr1urGpp9nw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+LaihFGfeKJCnm7zYcWts61qBZg00whNij/C81mlXhgIgZgA+tkMHVbJuniYzW/iThs0OQ8wS7I7Q31ixmxWjbbg="}]},"maintainers":[{"name":"izy521","email":"kyekye321@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cjopus-0.0.2.tgz_1472547828358_0.48954327614046633"}},"0.0.3":{"name":"cjopus","version":"0.0.3","description":"Emscripten bindings for libopus. Encode / Decode your audio to opus with pure JS.","main":"./lib/Opus.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/izy521/CJOpus.git"},"keywords":["Opus","libopus","Emscripten","Audio","LLVM"],"author":{"name":"izy521"},"license":"MIT","bugs":{"url":"https://github.com/izy521/CJOpus/issues"},"homepage":"https://github.com/izy521/CJOpus#readme","_id":"cjopus@0.0.3","_shasum":"0f6d72ed12dc2281845da6d9860700dfa4162ef7","_from":".","_npmVersion":"3.10.8","_nodeVersion":"5.12.0","_npmUser":{"name":"izy521","email":"kyekye321@gmail.com"},"dist":{"shasum":"0f6d72ed12dc2281845da6d9860700dfa4162ef7","tarball":"https://registry.npmjs.org/cjopus/-/cjopus-0.0.3.tgz","integrity":"sha512-XXtmyYtXhjgb5kkHhQY2XCXIUKr7HBJl/Vxu+YfTa9MOSatS/m9fwDHlfMeCzbMazP3rxnZqsDn/x9BuzTNzPA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGdG0autpowqDO7ddFLm89+E4yT8DzgQR4DFEaYnhm84AiBRzFiAtt/pxk/I5oUb6+UmOjnjgK3p1zjnPYyIFTAblw=="}]},"maintainers":[{"name":"izy521","email":"kyekye321@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/cjopus-0.0.3.tgz_1475519254413_0.15513373469002545"}},"0.0.4":{"name":"cjopus","version":"0.0.4","description":"Emscripten bindings for libopus. Encode / Decode your audio to opus with pure JS.","main":"./lib/Opus.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/izy521/CJOpus.git"},"keywords":["Opus","libopus","Emscripten","Audio","LLVM"],"author":{"name":"izy521"},"license":"MIT","bugs":{"url":"https://github.com/izy521/CJOpus/issues"},"homepage":"https://github.com/izy521/CJOpus#readme","_id":"cjopus@0.0.4","_shasum":"46f3cfc96b83f7d78446de8b4cfd994b5889a9a0","_from":".","_npmVersion":"3.10.8","_nodeVersion":"5.12.0","_npmUser":{"name":"izy521","email":"kyekye321@gmail.com"},"dist":{"shasum":"46f3cfc96b83f7d78446de8b4cfd994b5889a9a0","tarball":"https://registry.npmjs.org/cjopus/-/cjopus-0.0.4.tgz","integrity":"sha512-xN+l8Ju6goxhJOIDfZoyViA5TYAxpnEo9iTKFvP1XBK/c7pmfAcu8QxpQLBBpjs6dFgh4I/MqouAIK1oBoOkWA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIALFyi/MN36J+TMNtSsQ95KruC+CPZ9U3vmzr+YwT4syAiB4ZnpJa2d2NTHnXMK4RyEVl3UmmOD7qsEH678mfw9AJA=="}]},"maintainers":[{"name":"izy521","email":"kyekye321@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cjopus-0.0.4.tgz_1475559075502_0.7690162525977939"}}},"readme":"# CJOpus\nEmscripten (C++/JavaScript) bindings for libopus\n\nA module to encode PCM data to and decode PCM data from Opus.\n\n## Using\n\nThe `lib` folder includes a pre-compiled version. Requiring the `Opus.js` entrypoint file should be enough.\n\n### OpusEncoder\n\n```js\n//Tries to mimic `node-opus` in syntax.\nvar encoder = new OpusEncoder( 48000, 2 );\n```\n\n### OpusEncoder#encode(Buffer/TypedArray/Array)\n\n```js\nvar PCM = getPCMDataSomehow();\nvar encoded = encoder.encode( PCM );\n```\n\n### OpusEncoder#decode(Buffer/TypedArray/Array)\n\n```js\nvar OPUS = getOPUSDataSomehow();\nvar decoded = encoder.decode( OPUS );\n```\n\n### OpusEncoder#encodeUnsafe / OpusEncoder#decodeUnsafe\n\nThese two methods work just like the safe versions, however they don't do any error checking and they use `.subarray()` instead of `.slice()`. Because of this, it's a bit faster. It's relatively safe to use, just know that if an encoding error happens, it will return an empty `Uint8Array` (encode) or `Int16Array` (decode).\n\n### OpusEncoder#destroy()\n\n```js\nencoder.destroy();\n```\n\nSince this is an Emscripten module (that also has to malloc), the memory also needs to be freed manually when finished. It's a small program, perhaps under 30KB of dynamically allocated memory, but that can add up.\n\n## Building\n\nThe required packages for building (under Debian-based distros) are:\n\n* git\n* build-essential\n* libtool\n\n```bash\n$ git clone --recursive https://github.com/izy521/CJOpus.git\n$ cd CJOpus\n$ make\n```","maintainers":[{"name":"izy521","email":"kyekye321@gmail.com"}],"time":{"modified":"2022-06-13T06:04:14.602Z","created":"2016-08-16T23:42:13.969Z","0.0.1":"2016-08-16T23:42:13.969Z","0.0.2":"2016-08-30T09:03:50.188Z","0.0.3":"2016-10-03T18:27:35.839Z","0.0.4":"2016-10-04T05:31:17.626Z"},"homepage":"https://github.com/izy521/CJOpus#readme","keywords":["Opus","libopus","Emscripten","Audio","LLVM"],"repository":{"type":"git","url":"git+https://github.com/izy521/CJOpus.git"},"author":{"name":"izy521"},"bugs":{"url":"https://github.com/izy521/CJOpus/issues"},"license":"MIT","readmeFilename":"README.md"}