# spotify-playing

> Returns the current song playing on Spotify

Latest version **1.0.8** (published 2020-10-20) · ISC license · 0 weekly downloads

## Install

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

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2020-10-20 |
| First published | 2020-03-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Michael Maxwell |
| Maintainers | micmax |
| Keywords | spotify, playing, song, artist |

## Links

- npm: https://www.npmjs.com/package/spotify-playing
- Repository: https://github.com/mic-max/spotify-playing
- Homepage: https://github.com/mic-max/spotify-playing#readme
- Issues: https://github.com/mic-max/spotify-playing/issues
- npm.io page: https://npm.io/package/spotify-playing

## Recent versions

- 1.0.8 (latest) — 2020-10-20
- 1.0.7 — 2020-10-20
- 1.0.6 — 2020-03-12
- 1.0.3 — 2020-03-02
- 1.0.2 — 2020-03-02
- 1.0.1 — 2020-03-01
- 1.0.0 — 2020-03-01

## README

# Spotify Playing

![Node.js Package](https://github.com/mic-max/spotify-playing/workflows/Node.js%20Package/badge.svg) ![NPM Version](https://img.shields.io/npm/v/spotify-playing.svg)

> Gets the current song playing on Spotify

## Requirements
Works on Windows, Mac, and Linux with the desktop spotify client.

## Example

```js
const playing = require('spotify-playing')

setInterval(playing, 1000, (err, now) => {
    if (err)
        // Platform not supported
        // Cannot find Spotify process
        // Nothing playing on Spotify
        return console.error(err)

    // { artist: 'The Fratellis', song: 'Chelsea Dagger' }
    console.log(now)
})

```

## Troubleshooting
- If playing on another device you first might need to switch to this device
  and switch the song.
- Close and reopen Spotify

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