spot-track

1.0.0 • Public • Published

spot-track

A simple library to be used in demos. Grabs the preview url from Spotify's search API endpoint for a given track name.

Usage

const SpotTrack = require('./index')
 
const s = new SpotTrack('YOUR_SPOTIFY_CLIENT_ID', 'YOUR_SPOTIFY_CLIENT_SECRET')
 
async function main() {
  try {
    const track = await s.getTrack('never gonna give')
    console.log(track)
  } catch (err) {
    console.error(err)
  }
}
 
main()

Readme

Keywords

Package Sidebar

Install

npm i spot-track

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

3.19 kB

Total Files

4

Last publish

Collaborators

  • eddiezane