egg-netease-cloud-music
egg for neteaseCloudMusicApi
Install
-
build a server with neteaseCloudMusicApi
-
install this plugin
$ npm i egg-netease-cloud-music --save
Usage
// {app_root}/config/plugin.jsexportsneteaseCloudMusic = enable: true package: 'egg-netease-cloud-music';
Configuration
// {app_root}/config/config.default.jsexportsneteaseCloudMusic = ;
see config/config.default.js for more detail.
Example
// search music by keywordconst musicList = await thisappneteaseCloudMusic // get music url by netease idconst musicUrl = await thisappneteaseCloudMusic // download music to local locationconst musicDownload = await thisappneteaseCloudMusic
Questions & Suggestions
Please open an issue here.