https://github.com/prajjwaldatir/lyrics-monarch-api
fetches lyrics of a song using get parameters
https://github.com/prajjwaldatir/lyrics-monarch-api
Last synced: 6 months ago
JSON representation
fetches lyrics of a song using get parameters
- Host: GitHub
- URL: https://github.com/prajjwaldatir/lyrics-monarch-api
- Owner: PrajjwalDatir
- License: agpl-3.0
- Created: 2021-06-28T13:48:16.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-29T09:39:36.000Z (almost 5 years ago)
- Last Synced: 2025-06-28T19:14:44.588Z (10 months ago)
- Language: JavaScript
- Size: 126 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lyrics-monarch-api
Fetches lyrics of a song using matching terms.
## Methods
```javascript
getLyrics(term)
```
## For Javascript:
```Javascript
const Lyrics = require('lyrics-monarch-api');
const lyrics = new Lyrics();
/**
* Example of the method getLyrics
*/
lyrics.getLyrics('Snap back to reality')
.then((response) => {
return console.log(response);
})
.catch((error) => {
return console.log(error);
})
```
## For Typescript
```Typescript
// @ts-ignore
import Lyrics from 'lyrics-monarch-api';
const lyrics = new Lyrics();
/**
* Example of the method getLyrics
*/
lyrics.getLyrics('Snap back to reality')
.then((response) => {
return console.log(response);
})
.catch((error) => {
return console.log(error);
})
```