tinysong

An API library for Tinysong.com

npm install tinysong
4 downloads in the last week
19 downloads in the last month

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 => [ {…}, {…}, … ]
});
npm loves you