simple-unique-id

A simple unique ID generator.

npm install simple-unique-id
3 downloads in the last week
4 downloads in the last month

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.

npm loves you