egg-netease-cloud-music

1.0.0 • Public • Published

egg-netease-cloud-music

NPM version build status Test coverage David deps Known Vulnerabilities npm download

egg for neteaseCloudMusicApi

Install

  1. build a server with neteaseCloudMusicApi

  2. install this plugin

$ npm i egg-netease-cloud-music --save

Usage

// {app_root}/config/plugin.js
exports.neteaseCloudMusic = {
  enable: true,
  package: 'egg-netease-cloud-music',
};

Configuration

// {app_root}/config/config.default.js
exports.neteaseCloudMusic = {
};

see config/config.default.js for more detail.

Example

// search music by keyword
const musicList = await this.app.neteaseCloudMusic.searchMusic('天使的翅膀')
 
// get music url by netease id
const musicUrl = await this.app.neteaseCloudMusic.getMusicUrl(27747330)
 
// download music to local location
const musicDownload = await this.app.neteaseCloudMusic.downloadMusic(27747330, '/test.mp3')

Questions & Suggestions

Please open an issue here.

License

MIT

Package Sidebar

Install

npm i egg-netease-cloud-music

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

7.51 kB

Total Files

6

Last publish

Collaborators

  • reezon