A powerful TypeScript library for interacting with the Last.fm API.
import { Client } from '@lastfm-ts/wrapper';
const client = new Client('API_KEY');
const trackData = await client.tracks.get('DROELOE', 'Foolish Fish');
console.log(
`${trackData.name} from ${trackData.artist.name} has ${trackData.playCount} plays.`
); // Foolish Fish from DROELOE has 123456 plays.- Clone the repository using
git clone https://github.com/lastfm-ts/lastfm-ts - Navigate to the cloned repository using
cd lastfm-ts - Install the dependencies using
pnpm install - Build the monorepo packages using
pnpm build
The monorepo comes with the following npm scripts:
build: Compiles all the packages in the monorepo.dev: Initiates the development server with hot-reloading enabled.lint: Ensures codebase formatting adheres to Prettier and ESLint standards.format: Automatically formats and rectifies codebase issues using Prettier and ESLint.
This project is licensed under the MIT License - see the LICENSE file for details.