1.0.4-alpha.2 • Published 1 year ago

lastfm-client-ts v1.0.4-alpha.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

lastfm-client-ts

NPM Version Downloads Per Week License: MIT

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!

1.0.4-alpha.2

1 year ago

1.0.4-alpha.1

1 year ago

1.0.4-alpha.0

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago