# mikuni-spotify

> A spotify module for kazagumo

Latest version **1.0.2** (published 2023-03-26) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install mikuni-spotify
pnpm add mikuni-spotify
yarn add mikuni-spotify
bun add mikuni-spotify
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2023-03-26 |
| First published | 2023-03-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 22.7 KB |
| Known vulnerabilities | 0 (+16 in 1 direct dependencies) |
| Install scripts | no |
| Author | achira |
| Maintainers | achira |
| Keywords | spotify, module, kazagumo, kazagumo-plugin, kazagumo-plugin-spotify, kazagumo-spotify, plugin, spotify-plugin |

## Links

- npm: https://www.npmjs.com/package/mikuni-spotify
- npm.io page: https://npm.io/package/mikuni-spotify

## Dependencies (2)

- [undici](https://npm.io/package/undici.md) ^5.5.1
- [mikuni-kazagumo](https://npm.io/package/mikuni-kazagumo.md) ^3.0.20

## Recent versions

- 1.0.2 (latest) — 2023-03-26
- 1.0.1 — 2023-03-26
- 1.0.0 — 2023-03-25

## README

# mikuni-spotify

## A spotify plugin for mikuni-kazagumo module

## Accepted query

Track link; `https://open.spotify.com/track/7nw4ElerVAP5235FN5D2OI`  
Playlist link; `https://open.spotify.com/playlist/2gzszlY4WeJOTOUU6x3sgA`  
Album link; `https://open.spotify.com/album/18UoCkfQKlMVnAcZXbiBz8`  
Artist link; `https://open.spotify.com/artist/64tJ2EAv1R6UaZqc4iOCyj?si=mxc5IMM9RQeEPmY0KBIfjg`  
String; `mirror heart`

## Installation

> npm i mikuni-spotify


#### How to

```js
const { Kazagumo } = require('mikuni-kazagumo');
const Spotify = require('mikuni-spotify');

const kazagumo = new Kazagumo(
  {
    plugins: [
      new Spotify({
        clientId: '',
        clientSecret: '',
        playlistPageLimit: 1, // optional ( 100 tracks per page )
        albumPageLimit: 1, // optional ( 50 tracks per page )
        searchLimit: 10, // optional ( track search limit. Max 50 )
        searchMarket: 'US', // optional || default: US ( Enter the country you live in. [ Can only be of 2 letters. For eg: US, IN, EN ] )//
      }),
    ],
  },
  new Connectors.DiscordJS(client),
  Nodes,
);

kazagumo.search(`https://open.spotify.com/track/7nw4ElerVAP5235FN5D2OI`); // track, album, playlist, artist
kazagumo.search('mirror heart', { engine: 'spotify' }); // search track using spotify
```

---
_Source: https://npm.io/package/mikuni-spotify · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
