av
Advanced tools
Comparing version 0.3.1 to 0.4.0
{ | ||
"name": "av", | ||
"description": "Audio decoding framework", | ||
"version": "0.3.1", | ||
"version": "0.4.0", | ||
"author": { | ||
"name": "Audiocogs", | ||
"url": "http://audiocogs.org/" | ||
"name": "Audiocogs", | ||
"url": "http://audiocogs.org/" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/audiocogs/aurora.js.git" | ||
"type": "git", | ||
"url": "https://github.com/audiocogs/aurora.js.git" | ||
}, | ||
@@ -18,12 +18,27 @@ "bugs": "https://github.com/audiocogs/aurora.js/issues", | ||
"devDependencies": { | ||
"coffee-script": ">=1.0", | ||
"qunit-cli": "*", | ||
"importer": ">=0.4" | ||
"coffee-script": ">=1.0", | ||
"qunit-cli": "*", | ||
"browserify": "^4.1.10", | ||
"coffeeify": "^0.6.0", | ||
"exorcist": "^0.1.6" | ||
}, | ||
"scripts": { | ||
"prepublish": "node_modules/.bin/importer node.coffee node.js", | ||
"test": "node_modules/.bin/importer node.coffee node.js; node_modules/.bin/importer tests/test.coffee" | ||
"prepublish": "make js", | ||
"postpublish": "make clean", | ||
"test": "coffee tests/test.coffee" | ||
}, | ||
"engine": [ "node >= v0.6.0" ], | ||
"main": "node.js" | ||
"engine": [ | ||
"node >= v0.6.0" | ||
], | ||
"main": "./node", | ||
"browserify": { | ||
"transform": [ | ||
"coffeeify" | ||
] | ||
}, | ||
"browser": { | ||
"./node": "./browser.coffee", | ||
"./src/sources/node/file.coffee": "./src/sources/browser/file.coffee", | ||
"./src/sources/node/http.coffee": "./src/sources/browser/http.coffee" | ||
} | ||
} |
@@ -23,20 +23,56 @@ Aurora.js | ||
## Building | ||
## Usage | ||
Currently, the [importer](https://github.com/devongovett/importer) module is used to build Aurora.js. You can run | ||
the development server by first installing `importer` with npm, and then running it like this: | ||
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](https://github.com/audiocogs/aurora.js/releases) | ||
or use [browserify](https://github.com/substack/node-browserify) to build it into your own | ||
app bundle (see below for Node.js usage - it's the same for browserify). | ||
npm install importer -g | ||
importer browser.coffee -p 8080 | ||
```html | ||
<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 | ||
You can also build a static version like this: | ||
Then, require the module and codecs you need: | ||
importer browser.coffee aurora.js | ||
```javascript | ||
var AV = require('av'); | ||
require('mp3'); | ||
// more codecs here... | ||
``` | ||
For much more detailed information on how to use Aurora.js, check out the | ||
[documentation](https://github.com/audiocogs/aurora.js/wiki). | ||
## Building | ||
We use [browserify](https://github.com/substack/node-browserify) to build Aurora.js. To build Aurora.js | ||
for the browser yourself, use the following commands: | ||
npm install | ||
make browser | ||
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 such as [FLAC.js](https://github.com/audiocogs/flac.js), | ||
[ALAC.js](https://github.com/audiocogs/alac.js), and [MP3.js](https://github.com/devongovett/mp3.js). | ||
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: | ||
* [FLAC.js](https://github.com/audiocogs/flac.js) | ||
* [ALAC.js](https://github.com/audiocogs/alac.js) | ||
* [MP3.js](https://github.com/audiocogs/mp3.js) | ||
* [AAC.js](https://github.com/audiocogs/aac.js) | ||
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. | ||
## License | ||
Aurora.js is released under the MIT license. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
8
77
0
5191
5
10
2