Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "fpcalc", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Calculate AcoustID audio fingerprint", | ||
@@ -26,5 +26,5 @@ "main": "index.js", | ||
"dependencies": { | ||
"concat-stream": "^1.4.6", | ||
"event-stream": "^3.1.7", | ||
"once": "^1.3.0", | ||
"concat-stream": "^1.5.0", | ||
"event-stream": "^3.3.1", | ||
"once": "^1.3.2", | ||
"stream-filter": "^1.0.0", | ||
@@ -34,4 +34,4 @@ "stream-reduce": "^1.0.3" | ||
"devDependencies": { | ||
"tape": "^2.14.0" | ||
"tape": "^4.2.1" | ||
} | ||
} |
@@ -1,20 +0,40 @@ | ||
# node-fpcalc | ||
# fpcalc | ||
Calculate [AcoustID](http://acoustid.org/) audio fingerprint for a given | ||
audio file using the [Chromaprint fpcalc | ||
tool](http://acoustid.org/chromaprint). | ||
This module is a wrapper around the [`fpcalc` command-line tool][chromaprint] | ||
and provides a node interface to calculate [AcoustID][] audio | ||
fingerprints for audio files. | ||
# Example | ||
[chromaprint]: http://acoustid.org/chromaprint | ||
[acoustid]: http://acoustid.org/ | ||
## Installing Chromaprint | ||
[`fpcalc` (provided by *Chromaprint*)][chromaprint] must be installed for | ||
this module to function. | ||
**OSX using Homebrew** | ||
``` | ||
$ brew install chromaprint | ||
``` | ||
**Ubuntu** | ||
``` | ||
$ sudo apt-get install libchromaprint-tools | ||
``` | ||
## Example | ||
```js | ||
var fpcalc = require("fpcalc"); | ||
fpcalc("./audio.mp3", function(err, result) { | ||
if (err) throw err; | ||
console.log(result.file, result.duration, result.fingerprint); | ||
if (err) throw err; | ||
console.log(result.file, result.duration, result.fingerprint); | ||
}); | ||
``` | ||
# API | ||
## API | ||
## `fpcalc(file, [options,] callback)` | ||
### `fpcalc(file, [options,] callback)` | ||
@@ -39,10 +59,6 @@ Calculates the fingerprint of the given audio file. | ||
# Installation | ||
## Installation | ||
**The [*fpcalc* command-line tool](http://acoustid.org/chromaprint) must | ||
be installed.** This is often available via your package manager (e.g., | ||
`apt-get install libchromaprint-tools` or `brew install chromaprint`). | ||
``` | ||
npm install fpcalc | ||
npm install --save fpcalc | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
204118
64
Updatedconcat-stream@^1.5.0
Updatedevent-stream@^3.3.1
Updatedonce@^1.3.2