1 Star 0 Fork 0

Sterne Lee / example-worker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
lodash.ts 321 Bytes
一键复制 编辑 原始数据 按行查看 历史
李兴广 提交于 2020-07-08 13:41 . 更新
import * as lodash from "lodash";
import * as crypto from "crypto";
const UUIDGeneratorNode = () =>
([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, c =>
(c ^ (crypto.randomBytes(1)[0] & (15 >> (c / 4)))).toString(16)
);
const _lodash: any = lodash
_lodash.uuid = UUIDGeneratorNode
export default _lodash
TypeScript
1
https://gitee.com/sternelee/example-worker.git
git@gitee.com:sternelee/example-worker.git
sternelee
example-worker
example-worker
master

搜索帮助