Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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;