songsterr-api-node
v1.0.8
Published
npm module for Songsterr's API
Downloads
20
Maintainers
Readme
songsterr-api-node
Unoffical module to fetch tabs from Songsterr's API.
Installation
npm i songsterr-api-node
Usage
const { songsterrSearch } = require("songsterr-api-node")
const fetch = async string => {
const results = await songsterrSearch(string)
console.log('Tabs')
console.log(results)
}
fetch('track or artist')
Why?
This module also transform's the original result's tuning array to one that makes sense.
Before
console.log(results[0].tracks[0].tuning)
[ 64, 59, 55, 50, 45, 40 ]
After
console.log(results[0].tracks[0].tuning)
{
octave: 'E2 A2 D3 G3 B3 E4',
note: 'e A D G B E',
name: 'Standard tuning'
}