Socket
Socket
Sign inDemoInstall

@rygent/spotify

Package Overview
Dependencies
0
Maintainers
1
Versions
136
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @rygent/spotify

An UNOFFICIAL wrapper for Spotify REST API written in typescript.


Version published
Maintainers
1
Install size
58.1 kB
Created

Readme

Source

Spotify Wrapper

An UNOFFICIAL wrapper for Spotify REST API written in typescript.

You can visit the official docs for Spotify here to find out everything you can do.

[!IMPORTANT]

This project is still under development, not everything supported yet.

Installation

npm i @rygent/spotify
yarn add @rygent/spotify
pnpm i @rygent/spotify

Usage

import { Spotify } from '@rygent/spotify';
import config from './config.js';

const spotify = new Spotify({
    id: config.client_id, // Your client_id
    secret: config.client_secret // Your client_secret
});

await spotify.search({ type: 'track,album', q: 'Happier Than Ever' });
await spotify.search({ type: 'artist', q: 'Billie Eilish' });

[!NOTE]

  • offset: This property is optional and the default value is 0.
  • limit: This property is optional and the default value is 20.

This project is not affiliated with nor endorsed by Spotify.

Keywords

FAQs

Last updated on 17 Nov 2023

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