https://github.com/lsongdev/163-music
Netease Music SDK in Node.js
https://github.com/lsongdev/163-music
netease-cloud-music
Last synced: about 1 year ago
JSON representation
Netease Music SDK in Node.js
- Host: GitHub
- URL: https://github.com/lsongdev/163-music
- Owner: lsongdev
- License: mit
- Created: 2018-08-28T12:48:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-29T08:49:24.000Z (over 6 years ago)
- Last Synced: 2025-02-13T22:23:36.258Z (about 1 year ago)
- Topics: netease-cloud-music
- Language: JavaScript
- Homepage: http://npmjs.org/163-music
- Size: 8.79 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 163-music
> Netease Music SDK in Node.js
[](https://npmjs.org/163-music)
[](https://travis-ci.org/song940/163-music)
### 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).
---