feat: 添加npm包说明
This commit is contained in:
parent
e089899a2e
commit
de8c3119ca
17
README.md
17
README.md
|
@ -17,8 +17,23 @@ const onSyncTask = async (config, env, op, eventData) => {
|
||||||
|
|
||||||
详情参见:[Flow 文档](./flow/README.md)
|
详情参见:[Flow 文档](./flow/README.md)
|
||||||
|
|
||||||
|
## npm包
|
||||||
|
|
||||||
|
你可以通过`require`使用指定的npm包,例如:
|
||||||
|
|
||||||
|
```js
|
||||||
|
const { SHA256 } = require('crypto-js');
|
||||||
|
log(SHA256('Message'));
|
||||||
|
```
|
||||||
|
|
||||||
|
可以使用的npm包包括:
|
||||||
|
|
||||||
|
- [ldapjs](https://www.npmjs.com/package/ldapjs):LDAP client
|
||||||
|
- [axios](https://www.npmjs.com/package/axios):HTTP client
|
||||||
|
- [crypto-js](https://www.npmjs.com/package/crypto-js):加密工具
|
||||||
|
- [node-rsa](https://www.npmjs.com/package/node-rsa)
|
||||||
|
- [gm-crypto](https://www.npmjs.com/package/gm-crypto):国密算法(sm2,sm3,sm4)
|
||||||
|
- [fast-xml-parser](https://www.npmjs.com/package/fast-xml-parser):XML 解析
|
||||||
|
- [uuid](https://www.npmjs.com/package/uuid)
|
||||||
|
- [dayjs](https://www.npmjs.com/package/dayjs):日期时间格式处理
|
||||||
|
- [lodash](https://www.npmjs.com/package/lodash):工具类
|
||||||
|
|
Loading…
Reference in New Issue