1.2.0 • Published 5 years ago
walkman-service v1.2.0
Walkman Service
Multiple Platform music api for Node.js
Inspired
Inspired by metowolf/Meting.This project is just a Node.js implementation for a part of APIs in metowolf/Meting
Install
npm i walkman-service
Usage
const MusicService = require('walkman-service')
// Available Platforms ['kugou', 'netease', 'tencent', 'xiami']
let service = new MusicService('netease')
service.search({
keyword: '旧词'
}).then(res => {
let song = res.data[0]
console.log(song)
service.lyric(song.id).then(res => console.log(res.data))
service.url(song.id).then(res => console.log(res.data))
})
License
MIT