Bindings for node.js to interact and using the toma.hk website. Install it using:
$ npm install tomahktomahk.createPlaylist("Awesome playlist!", [
{artist: "Bloc Party", title: "Ratchet"},
{artist: "Vampire Weekend", title: "A-Punk"}
], function (url) {
console.log("Playlist URL: " + url);
});var url = tomahk.albumUrl('Blur', '13');var url = tomahk.trackUrl('Bloc Party', 'Ratchet');
// toma.hk redirects this to a shortened url which you can get via
tomahk.shortTrackUrl('Bloc Party', 'Ratchet', function (url) {
console.log('Listen to Bloc Party - Ratchet at ' + url);
});var url = tomahk.artistUrl('Bloc Party');