get-lyrics-hd
Version:
Get a song's lyrics
37 lines (28 loc) • 767 B
Markdown
# get-lyrics - Get lyrics in your apps
**get-lyrics** allows you to get lyrics from a song in your app.
All credit to https://github.com/trekiteasy/get-lyrics
I folk this cos the original repo look inactive.
## How to install
```
npm install get-lyrics --save
```
## How to use
Simple code :
`search('Artist name', 'Song name')`
Full code :
```javascript
include * as lyrics from 'get-lyrics'
lyrics.search('Hindi Zahra', 'Fascination')
/**
* This will return a Promise which will resolve in :
* "One of these days you know [...]"
* /
```
the response object will be with the following format :
```
{
lyrics, // Contains the lyrics in a text format
provider, // Contains an identifier of the source
url // Contains a link to the lyrics
}
```