npm.io
0.1.4 • Published 11 years ago

random-guid

Licence
ISC
Version
0.1.4
Deps
1
Vulns
0
Weekly
0

random-guid

CONTRIBUTING

When making edits, please edit index.es6. index.js will be generated automatically when you run make test.

randomString([string salt])

Generate a random string

randomGuid([int numberOfBlocks, [int blockLength, [string salt]]])

Generate a random guid, separated with dashes.

Usage

var randomGuid = require("random-guid") .randomGuid;

domSafeRandomGuid([int blocks])

Generate a guid that is tested unique against id's on the current doc.

Usage

var domSafeRandomGuid = require("random-guid") .domSafeRandomGuid;

Keywords