@toplast/lastfm
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.5 • Public • Published

    @toplast/lastfm

    An asynchronous and typed client for the Last.fm API

    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

    Install

    npm i @toplast/lastfm

    DownloadsWeekly Downloads

    44

    Version

    0.1.5

    License

    MIT

    Unpacked Size

    40.1 kB

    Total Files

    33

    Last publish

    Collaborators

    • castilh0s