tinysong

0.1.3 • Public • Published

tinysong-coffee

A tiny library for accessing tinysong.com.

An API key is required. You can get one from here: http://tinysong.com/api.

Implements three methods as documented in the official API documentation.

Installation

npm install tinysong

Usage

var tinysong = require('tinysong');

tinysong.API_KEY = 'your_api_key_here';

// Get a single result as URL
tinysong.a('Fall At Your Feet', function(err, res) {
    // res => http://tinysong.com/1bne7
});

// Get a single song as an object with metadata
tinysong.b('Fall At Your Feet', function(err, res) {
    // res => { Url, SongID, SongName, … }
});

// Same as `b` but get multiple results, defaults to 5
tinysong.s('River Flows In You', 10, function(err, res) {
    // res => [ {…}, {…}, … ]
});

/tinysong/

    Package Sidebar

    Install

    npm i tinysong

    Weekly Downloads

    7

    Version

    0.1.3

    License

    none

    Last publish

    Collaborators

    • rane