From 67afb3cf555dc177666dbfc317813ed2c1825bf1 Mon Sep 17 00:00:00 2001 From: Jixun Wu <5713045+jixunmoe@users.noreply.github.com> Date: Sun, 19 Dec 2021 20:57:18 +0000 Subject: [PATCH] Updated Home (markdown) --- Home.md | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/Home.md b/Home.md index 79d3633..223c3dc 100644 --- a/Home.md +++ b/Home.md @@ -4,24 +4,16 @@ ## 安装 -1. 建立一个只有 `package:read` 权限的 PAT Token: -2. 设定 [`~/.npmrc`][npmrc],加入下述内容并替换 `<刚申请的 PAT>` 为刚申请的 Token 值(如 `ghp_ABCDEF0123456789`): - - ```ini - //npm.pkg.github.com/:_authToken=<刚申请的 PAT> - @unlock-music:registry=https://npm.pkg.github.com - ``` - -3. 安装依赖 `npm i --save @unlock-music/joox-crypto`; - -注:使用 GitHub Actions 构建时应该[不需要提供 auth token][ref_workflow]。 +```bash +npm i --save @unlock-music-gh/joox-crypto +``` ## 使用 参考 [`joox-decrypt`][ref_source]。 ```js -const jooxFactory = require('@unlock-music/joox-crypto'); +const jooxFactory = require('@unlock-music-gh/joox-crypto'); const data = new Uint8Array(...); const decryptor = jooxFactory(data, '00000000000000000000000000000000');