![Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack](https://cdn.sanity.io/images/cgdhsj6q/production/6af25114feaaac7179b18127c83327568ff592d1-1024x1024.webp?w=800&fit=max&auto=format)
Security News
Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
av
Advanced tools
Readme
Aurora.js is a framework that makes writing audio decoders in JavaScript easier. It handles common tasks for you such as dealing with binary data, and the decoding pipeline from source to demuxer to decoder, and finally to the audio hardware itself by abstracting browser audio APIs. Aurora contains two high level APIs for inspecting and playing back decoded audio, and it is easily extendible to support more sources, demuxers, decoders, and audio devices.
Check out the documentation to learn more about using and extending Aurora.
We have written several decoders using Aurora.js, whose demos you can find here and whose source code can be found on our Github page.
Aurora.js was written by @jensnockert and @devongovett of Audiocogs.
You can use Aurora.js both in the browser, as well as in Node.js. In the browser, you can either download a prebuilt release or use browserify to build it into your own app bundle (see below for Node.js usage - it's the same for browserify).
<script src="aurora.js"></script>
<script src="mp3.js"></script>
<!-- more codecs here -->
To use Aurora.js in Node.js or a browserify build, you can install it from npm
:
npm install av
Then, require the module and codecs you need:
var AV = require('av');
require('mp3');
// more codecs here...
For much more detailed information on how to use Aurora.js, check out the documentation.
We use browserify to build Aurora.js. To build Aurora.js for the browser yourself, use the following commands:
npm install
make browser
This will place a built aurora.js
file, as well as a source map in the build/
directory.
By itself, Aurora will play LPCM, uLaw and aLaw files in a number of containers. Be sure to add additional codec support by including some of our other decoders:
If you want to build Aurora without the default codecs, you can use the "browser_slim" profile:
make browser_slim
This can help shave off approx. 30 KB from the joined file, or 20 KB when minified.
Aurora.js is released under the MIT license.
FAQs
Audio decoding framework
The npm package av receives a total of 2,259 weekly downloads. As such, av popularity was classified as popular.
We found that av demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.
Security News
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.