https://github.com/moszeed/lastfm-api
a Last.FM API Client for Node and the Browser
https://github.com/moszeed/lastfm-api
browser client lastfm lastfm-api nodejs
Last synced: 2 months ago
JSON representation
a Last.FM API Client for Node and the Browser
- Host: GitHub
- URL: https://github.com/moszeed/lastfm-api
- Owner: moszeed
- Created: 2019-02-22T13:54:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-01T09:35:50.000Z (over 7 years ago)
- Last Synced: 2025-10-28T10:55:10.705Z (8 months ago)
- Topics: browser, client, lastfm, lastfm-api, nodejs
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lastfm-api-client
a Last.FM API Client for Node and the Browser
##### Support
[Buy me a Coffee](https://www.patreon.com/moszeed)
### Features
* support for all available **GET** methods
* promises
* works in **node** and **browser**
### How to install
```shell
npm install lastfm-api-client
```
### API usage
```javascript
const LastFmApi = require('lastfm-api-client');
const LastFmClient = new LastFmApi({
apiKey : '<-- your last.fm api key -->',
apiSecret: '<-- your last.fm api secret -->'
});
LastFmClient.track.getInfo({
artist: 'Queens of the Stone Age',
track : 'No One Knows'
}).then((response) => {
console.log(response);
})
```