Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fpcalc

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fpcalc - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

10

package.json
{
"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
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc