Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jsososo/migumusicapi
咪咕音乐 nodejs api
https://github.com/jsososo/migumusicapi
migu nodejs typescript
Last synced: 18 days ago
JSON representation
咪咕音乐 nodejs api
- Host: GitHub
- URL: https://github.com/jsososo/migumusicapi
- Owner: jsososo
- Created: 2019-12-11T07:42:45.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-08T11:11:48.000Z (9 months ago)
- Last Synced: 2024-10-12T04:29:12.187Z (about 1 month ago)
- Topics: migu, nodejs, typescript
- Language: TypeScript
- Homepage: https://jsososo.github.io/MiguMusicApi
- Size: 111 KB
- Stars: 257
- Watchers: 5
- Forks: 97
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# QQMusicApi
[![NPM](https://img.shields.io/npm/v/migu-music-api.svg)](https://www.npmjs.com/package/migu-music-api)
[![github](https://img.shields.io/badge/github-MiguMusicApi-brightgreen.svg)](https://github.com/jsososo/MiguMusicApi)
[![GitHub Pages Star](https://img.shields.io/github/stars/jsososo/MiguMusicApi.svg)](https://github.com/jsososo/MiguMusicApi)接口参考:
[接口文档 Github](https://jsososo.github.io/MiguMusicApi/#/)
## 快速上手
### Node 服务
```shell script
git clone [email protected]:jsososo/MiguMusicApi.gityarn
yarn start
```### npm
```shell script
yarn add migu-music-api
```#### 接口调用
```javascript
const miguMusic = require('migu-music-api').default;
// or
// import miguMusic from 'migu-music-api';// 部分接口依赖 cookie, 这里穿参可以使用字符串或对象
miguMusic('search', { keyword: '周杰伦' })
.then((res) => console.log(res))
.catch((err) => console.error('err: ', err.message));miguMusic('search')
.then((res) => console.log(res))
.catch((err) => console.error('err: ', err.message));
```