feat: 添加npm包说明

This commit is contained in:
miaosiyu 2024-01-19 12:05:20 +08:00
parent e089899a2e
commit de8c3119ca
1 changed files with 16 additions and 1 deletions

View File

@ -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)国密算法sm2sm3sm4
- [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):工具类