mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2025-10-22 22:53:09 +00:00
49 lines
1.1 KiB
Markdown
49 lines
1.1 KiB
Markdown
# NeteaseCloudMusicApi
|
|
<a href="https://www.npmjs.com/package/NeteaseCloudMusicApi"><img src="https://img.shields.io/npm/v/NeteaseCloudMusicApi.svg" alt="Version"></a>
|
|
<a href="https://www.npmjs.com/package/NeteaseCloudMusicApi"><img src="https://img.shields.io/npm/l/NeteaseCloudMusicApi.svg" alt="License"></a>
|
|
一个调用网易云音乐 API 的 node 模块
|
|
|
|

|
|
|
|
## Start
|
|
``` shell
|
|
npm install NeteaseCloudMusicApi
|
|
```
|
|
|
|
## Usage
|
|
``` javascript
|
|
var api = require('NeteaseCloudMusicApi').api
|
|
api.search('年度之歌',function(data){
|
|
console.log(data)
|
|
})
|
|
```
|
|
or
|
|
``` javascript
|
|
import {api} from 'NeteaseCloudMusicApi'
|
|
api.search('年度之歌',data => {
|
|
console.log(data)
|
|
})
|
|
```
|
|
|
|
## API
|
|
|
|
### search
|
|
``` javascript
|
|
api.search(name:String,[callback:function,limit:Nnumber default:3, offset:Number default:0])
|
|
```
|
|
|
|
### lrc
|
|
``` javascript
|
|
api.lrc(id:Number,[callback:function,lv:Number default:-1])
|
|
```
|
|
|
|
### song
|
|
``` javascript
|
|
api.song(id:Number,[callback:function])
|
|
```
|
|
## Download
|
|
|
|
[github](https://github.com/Binaryify/NeteaseCloudMusicApi)
|
|
|
|
[npm](https://www.npmjs.com/package/NeteaseCloudMusicApi)
|