lastfm-client-ts
v1.0.4-alpha.2
Published
A LastFM client written in Typescript
Downloads
8
Maintainers
Readme
lastfm-client-ts
Table of Contents
About
Last.fm API client for Node.js
Getting Started
Installing
npm install lastfm-client-ts
Usage
import { lastFmClient } from "lastfm-client-ts";
const {
userApiMethods,
albumApiMethods,
artistApiMethods,
chartApiMethods,
geoApiMethods,
libraryApiMethods,
tagApiMethods,
trackApiMethods,
} = lastFmClient();
export default async function handler() {
const response = userApiMethods.getInfo({
user: "ansango",
});
return {
response,
};
}
Environment Variables
To run this project, you will need to add the following environment variables to your .env file
LASTFM_API_BASE_URL=http://ws.audioscrobbler.com/2.0/
LASTFM_USER=
LASTFM_API_KEY=
LASTFM_APPNAME=
Fullytyped
This project is fully typed with TypeScript.
Contributing
Contributions are always welcome!