Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robbestad/random-guid
Generate a random GUID
https://github.com/robbestad/random-guid
Last synced: 20 days ago
JSON representation
Generate a random GUID
- Host: GitHub
- URL: https://github.com/robbestad/random-guid
- Owner: robbestad
- License: isc
- Created: 2015-04-24T11:30:42.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-29T19:49:45.000Z (over 9 years ago)
- Last Synced: 2024-12-01T21:17:55.314Z (22 days ago)
- Language: JavaScript
- Size: 150 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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;