pandaGao / walkman-service

Multiple Platform music api for Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Walkman Service

npm version JavaScript Style Guide

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

About

Multiple Platform music api for Node.js

License:MIT License


Languages

Language:JavaScript 100.0%