【文件属性】:
文件名称:random-guid:生成随机 GUID
文件大小:8KB
文件格式:ZIP
更新时间:2021-06-03 03:02:07
JavaScript
随机引导
贡献
进行编辑时,请编辑index.es6 。 index.js会在你运行make test时自动生成。
randomString([字符串盐])
生成随机字符串
randomGuid([int numberOfBlocks, [int blockLength, [string salt]]])
生成一个随机的 guid,用破折号分隔。
用法
var randomGuid = require("random-guid") .randomGuid;
domSafeRandomGuid([int blocks])
生成一个针对当前文档中的 id 进行唯一测试的 guid。
用法
var domSafeRandomGuid = require("random-guid") .domSafeRandomGuid;
【文件预览】:
random-guid-master
----.eslintrc(4KB)
----AUTHORS(80B)
----.npmignore(67B)
----gulpfile.js(348B)
----LICENSE(758B)
----index.es6(2KB)
----README.md(582B)
----Makefile(627B)
----dist()
--------random-guid.min.js(0B)
----spec.js(688B)
----.gitignore(19B)
----index.js(3KB)
----bin()
--------authors(285B)
----package.json(1KB)
----mocha.opts(29B)