tunewiki

NodeJS wrapper for the TuneWiki API

Usage no npm install needed!

<script type="module">
  import tunewiki from 'https://cdn.skypack.dev/tunewiki';
</script>

README

node-tunewiki

node module for working with the tunewiki api

Lyrics

var TuneWiki = require('tunewiki');
var tunewiki = new TuneWiki({
   key: TUNEWIKI_API_KEY,
   secret: TUNEWIKI_API_SECRET,
   username: TUNEWIKI_USERNAME,
   password: TUNEWIKI_PASSWORD
});

tunewiki.lyrics('coldplay', 'clocks', function (err, result) {
    // result =>
    // {
    //     '1': {
    //         ts: 0, 
    //         text: 'Lights go out and I can\'t be saved'
    //     },
    //     '2': {
    //         ts: 32730,
    //         text: 'Tides that I tried to swim against'
    //     },
    //     '3': {
    //         ts: 36540,
    //         text: 'Have fought me down upon my knees'
    //     },
    //     ...
    // }
});

Search

tunewiki.search.lyrics
tunewiki.search.artists
tunewiki.search.artistsongs
tunewiki.search.hashtags
tunewiki.search.shares
tunewiki.search.songs('Macklemore & Ryan Lewis', function (err, result) {
    // result =>
    // {
    //     "type": "songs",
    //     "hasMore": true,
    //     "results": [
    //         ...
    //         {
    //             "playcount": 1,
    //             "score": 6.9330707,
    //             "artist": {
    //                 "id": 283780,
    //                 "name": "Macklemore & Ryan Lewis"
    //             },
    //             "song": {
    //                 "id": 4437851,
    //                 "artist_id": 283780,
    //                 "name": "Macklemore - Can't Hold Us"
    //             }
    //         },
    //         ...
    //     ]
    // }
});