songsterr-api-node
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

songsterr-api-node

npm bundle size Code Climate maintainability npm NPM

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'
}

Package Sidebar

Install

npm i songsterr-api-node

Weekly Downloads

6

Version

1.0.8

License

MIT

Unpacked Size

21.9 kB

Total Files

23

Last publish

Collaborators

  • brekki