JSPM

unique-string

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 20609564
  • Score
    100M100P100Q221203F
  • License MIT

Generate a unique random string

Package Exports

  • unique-string

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (unique-string) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

unique-string Build Status

Generate a unique random string

Install

$ npm install --save unique-string

Usage

const uniqueString = require('unique-string');

uniqueString();
//=> 'b4de2a49c8ffa3fbee04446f045483b2'

API

uniqueString()

Returns a 32 character unique string. Matches the length of MD5, which is unique enough for non-crypto purposes.

License

MIT © Sindre Sorhus