Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bubao/uc2mp3
https://github.com/bubao/uc2mp3
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bubao/uc2mp3
- Owner: bubao
- Created: 2021-03-03T20:54:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-03-19T14:40:54.000Z (over 3 years ago)
- Last Synced: 2023-11-13T19:26:26.150Z (about 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# uc2mp3
本工具可以将网易云音乐的缓存文件 (.uc) 格式解码成 (.mp3) 格式。
按字节异或`0xa3`,得到的就是 mp3 文件。
这是使用`process.nextTick`封装的方法,建议使用下面的代码直接处理:
```js
function core(buffer) {
if (!Buffer.isBuffer(buffer)) {
return false;
}
return buffer.map(value => value ^ 0xA3);
}
```