Socket
Socket
Sign inDemoInstall

fevr

Package Overview
Dependencies
45
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fevr

Get audio metrics from your Discogs collection


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
1.95 MB
Created
Weekly downloads
 

Readme

Source

fevr

Get audio metrics from your Discogs collection

Take a folder from a Discogs collection, and get audio metadata from Spotify's API for every track.

Thing ain't quite done. Don't use it. 💕

Installation

npm i fevr

Usage

You'll need API keys for both Discogs and Spotify. Because this library only culls from public data, no OAuth business is involved in setting things up.

import Fevr from 'fevr';

const f = new Fevr(opts);

f.get('gakimball', 0).then(tracks => {
  // `tracks` is an array of objects
  console.log(f.format(tracks));
});

API

Fevr(opts)

Create a parser instance with a set of API credentials.

  • opts (Object): instance options.
    • opts.discogsKey (String): Discogs application ID.
    • opts.discogsSecret (String): Discogs application secret.
    • opts.spotifyKey (String): Spotify application ID.
    • opts.spotifySecret (String): Spotify application secret.
Fevr.get(user[, folder])

Get track metadata for a user's collection or folder.

  • user (String): Discogs user.
  • folder (Integer): Collection folder.
    • 0 gets everything.
    • 1 gets uncategorized records.
    • Or, put in the ID of a specific folder.

Returns a Promise containing an array of objects. Each object is a track with metadata.

Fevr.format(tracks)

Format track metadata as an ASCII table. Includes these columns for now:

  • Title
  • Artist
  • Album
  • BPM

Returns a string of the table.

Local Development

git clone https://github.com/gakimball/fevr
cd fevr
npm install
npm test

License

MIT © Geoff Kimball

Keywords

FAQs

Last updated on 12 Feb 2017

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc