# qqmusic-sign

> QQ音乐API的sign算法

Latest version **1.0.0** (published 2021-03-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install qqmusic-sign
pnpm add qqmusic-sign
yarn add qqmusic-sign
bun add qqmusic-sign
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-03-18 |
| First published | 2021-03-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 24.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Cloud370 |
| Maintainers | cloud370 |

## Links

- npm: https://www.npmjs.com/package/qqmusic-sign
- Repository: https://github.com/Cloud370/qqmusic-sign
- npm.io page: https://npm.io/package/qqmusic-sign

## Recent versions

- 1.0.0 (latest) — 2021-03-18

## README

# qqmusic-sign
QQ音乐API sign算法简易封装

## 安装

npm安装
``` shell
npm install qqmusic-sign
```

yarn安装
``` shell
yarn add qqmusic-sign
```

## 使用方法
```javascript
const getSign = require("qqmusic-sign");

//传入对象
let obj = {
  comm: { ct: 24, cv: 0 },
  friendConcern: {
    module: "Concern.ConcernSystemServer",
    method: "cgi_concern_user_v2",
    param: {
      opertype: 0,
      source: 0,
      userinfo: { usertype: 0, userid: "owCF7w4z7e6s7z**" },
    },
  },
};

let objSign = getSign(obj)

//传入文字
let str = `{"comm":{"ct":24,"cv":0},"friendConcern":{"module":"Concern.ConcernSystemServer","method":"cgi_concern_user_v2","param":{"opertype":0,"source":0,"userinfo":{"usertype":0,"userid":"owCF7w4z7e6s7z**"}}}}`;
let strSign = getSign(str)
```

---
_Source: https://npm.io/package/qqmusic-sign · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
