Socket
Socket
Sign inDemoInstall

@toplast/lastfm

Package Overview
Dependencies
2
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @toplast/lastfm

A typed Last.fm API client for Node.js


Version published
Weekly downloads
10
increased by11.11%
Maintainers
1
Install size
434 kB
Created
Weekly downloads
 

Readme

Source

@toplast/lastfm

An asynchronous and typed client for the Last.fm API
CircleCI Coverage npm version npm downloads

const LastFm = require("@toplast/lastfm");
const lastFm = new LastFm("SOME_NICE_API_KEY");

lastFm.user
  .getTopAlbums({ user: "castilh0s" })
  .then(response => console.log(response)) // Handle success
  .error(error => console.log(error)); // Handle error

Installation

# With npm
$ npm install @toplast/lastfm

# With yarn
$ yarn add @toplast/lastfm

TypeScript

@toplast/lastfm includes TypeScript definitions.

import LastFm from "@toplast/lastfm";

const lastFm = new LastFm("API_KEY");

lastFm.user.getTopAlbums({ user: "castilh0s" });

License

MIT

Keywords

FAQs

Last updated on 31 Aug 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc