What can do
Simple, unified, lightweight Node.js version of netease cloud music API.
- Simple: 8 common interfaces
- Unity: Standard Promise APIS
- Lightweight: does not rely on any third party libraries
Music files can be played directly, without permission!
Music files can be played directly, without permission!
Music files can be played directly, without permission!
The implementation of the core logic refers to the PHP version of the Meting project.
The logic of the core API class comes from Zhang Xiaozhang.
How to use
const NeteaseMusic = require('simple-netease-cloud-music')
const nm = new NeteaseMusic(a)nm.search('A man is drunk').then(data = > {
console.log('Song search', data)
})
nm.playlist('751387161').then(data = > {
console.log('playlist', data)
})
nm.picture('19124905253588326'.400).then(data = > {
console.log('Picture address', data)
})
nm.artist('4130').then(data = > {
console.log('The artist', data)
})
nm.album('35327877').then(data = > {
console.log('playlist', data)
})
nm.lyric('479403027').then(data = > {
console.log('The lyrics', data)
})
nm.url('479403027').then(data = > {
console.log('Songs address', data)
})
nm.song('479403027').then(data = > {
console.log('Details of the song', data)
})Copy the code
node example.js
Copy the code