A simple unique ID generator.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
README.md
package.json

README.md

simple-unique-id

A simple unique ID generator.

Example usage

Specify a string to be used as the basis for the hash.

// Load dependencies.
var simple_unique_id = require('simple-unique-id')

// Generate rudimentary unique ID.
var id = simple_unique_id.generate('Hello world!')
console.log('id: %s', id)

This should produce output like the following.

> node example.js
id: 022c749a1c5f1f7687166ed3badfa8a9158e83f6

Simple.

License

This repository is made available to the public as open source software under the MIT License.