Socket
Socket
Sign inDemoInstall

@imikailoby/lastfm-ts

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@imikailoby/lastfm-ts

A minimalistic TypeScript-based client for Last.fm API 2.0


Version published
Weekly downloads
16
increased by220%
Maintainers
1
Weekly downloads
 
Created
Source

@imikailoby/lastfm-ts

TypeScript-based client for the Last.fm API 2.0, designed to streamline access to its public methods and JSON responses.

Key features

  • Zero Dependencies: Designed to function independently without any external dependencies.
  • Pure Responses: No altered or decorated data from the API. Use API's original responses as you wish.
  • Minimal size: ≈1kb minified and gzipped size (Bundlephobia).

Installation

# via yarn
yarn add @imikailoby/lastfm-ts

# via npm
npm install @imikailoby/lastfm-ts

Usage

  1. Obtain the Last.fm API Key (Read more).
  2. Initialize the LastFm class with the obtained API key.
  3. Use one of the available methods to get the required data.

Example:

import { LastFm } from '@imikailoby/lastfm-ts';

const lastFm = new LastFm('api_key'); // Insert your API key

lastFm.user.getInfo({ user: 'imikailoby' }).then((response) => {
    const { user } = response;
    // Do something with user data
});

Documentation

For comprehensive documentation, including detailed parameter descriptions, usage examples, FAQs, and more, please refer to the repository wiki.

Keywords

FAQs

Package last updated on 02 Mar 2024

Did you know?

Socket

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
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc