https://github.com/hughrawlinson/node-acousticbrainz
A Wrapper for the AcousticBrainz API
https://github.com/hughrawlinson/node-acousticbrainz
acousticbrainz api-wrapper musicbrainz musicbrainz-api
Last synced: 25 days ago
JSON representation
A Wrapper for the AcousticBrainz API
- Host: GitHub
- URL: https://github.com/hughrawlinson/node-acousticbrainz
- Owner: hughrawlinson
- License: mit
- Created: 2015-06-08T00:24:02.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-05-23T12:03:51.000Z (almost 5 years ago)
- Last Synced: 2024-12-28T09:27:36.735Z (4 months ago)
- Topics: acousticbrainz, api-wrapper, musicbrainz, musicbrainz-api
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/node-acousticbrainz
- Size: 28.3 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-acousticbrainz [](https://travis-ci.org/hughrawlinson/node-acousticbrainz/)
A Wrapper for the AcousticBrainz API# Documentation
Start by installing `node-acousticbrainz` in your project. You can do this with the following shell command:
`npm install --save node-acousticbrainz`
In the file that you want to use `node-acousticbrainz`, you should require it with:
`var AcousticBrainz = require('node-acousticbrainz');`
That line will vary if you're using ES2015 syntax, or an alternate module loader, but if you're doing those things you probably know how to require code in your chosen platform.
Instantiate an object:
`var ab = new AcousticBrainz();`
You can then use `ab` to fetch data from Acousticbrainz:
`ab.get('id','type',function(err,data){
// here you have access to your data!
});`The arguments to the `get` function, `id` and `type`, are documented in the [Acousticbrainz documentation](http://acousticbrainz.org/data)
Happy hacking!