Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

genius-api-wrapper

_deltabrain573MIT1.0.8

Basic usage

genius, lyrics, api, songs

readme

genius-api-wrapper

Basic usage

const genius = new Genius(GENIUS_API_KEY)

const artistId = genius.getArtistId('{artist}').then((res) => {
 return res
})

const songs = await genius.getSongsByArtist(artistId).then((res: Song[]) => {
 return res
})

Exclude terms

To exclude terms in song titles from the search do this:

const excludedTerms = ['remix', 'extended']
genius.addExcludedTerms(excludedTerms)