# 163-music

> Netease Music SDK in Node.js

Latest version **0.0.2** (published 2018-08-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install 163-music
pnpm add 163-music
yarn add 163-music
bun add 163-music
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2018-08-31 |
| First published | 2018-08-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 23.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | lsong |
| Maintainers | song940 |
| Keywords | 163, music |

## Links

- npm: https://www.npmjs.com/package/163-music
- Repository: https://github.com/song940/163-music
- Homepage: https://github.com/song940/163-music#readme
- Issues: https://github.com/song940/163-music/issues
- npm.io page: https://npm.io/package/163-music

## Recent versions

- 0.0.2 (latest) — 2018-08-31
- 0.0.1 — 2018-08-28

## README

## 163-music [![163-music](https://img.shields.io/npm/v/163-music.svg)](https://npmjs.org/163-music)

> Netease Music SDK in Node.js

### Installation

```bash
$ npm install 163-music
```

### Example


```javascript
const NeteaseMusic = require('163-music');

const nm = new NeteaseMusic({
    cookie: '__Your_Cookies__'
})

nm.search('Love Song').then(({ result }) => {
  const { songs } = result;
  songs.forEach(song => {
    console.log(`search(#${song.id}):`, song.name);
  });
})

nm.playlist('751387161').then(data => {
  console.log('歌单', data)
})

nm.picture('19124905253588326', 400).then(data => {
  console.log('图片地址', data)
})

nm.artist('4130').then(data => {
  console.log('艺术家', data)
})

nm.album('35327877').then(data => {
  console.log('歌单', data)
})

nm.lyric('479403027').then(data => {
  console.log('歌词', data)
})

nm.url('82360').then(({ data: resources }) => {
  resources.forEach(resource => {
    const { id, url } = resource;
    console.log(`song(#${id}):`, url);
  });
})

nm.song('479403027').then(data => {
  console.log('歌曲详情', data)
})
```


### Contributing
- Fork this Repo first
- Clone your Repo
- Install dependencies by `$ npm install`
- Checkout a feature branch
- Feel free to add your features
- Make sure your features are fully tested
- Publish your local branch, Open a pull request
- Enjoy hacking <3

### MIT

This work is licensed under the [MIT license](./LICENSE).

---

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