yyid

2.0.1 • Public • Published

YYID for JavaScript (Browser) [travis]

  • Generates a UUID#4-like random string, but in contrast to RFC 4122, omits the static bits
  • Format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (128bit randomness)
  • Uses a cryptographically solid source of randomness, if possible: crypto.getRandomValues
  • See yyid-node for a server-side (node.js) version

Install

npm

$ npm install yyid

yarn

$ yarn add yyid

script file

Copy yyid.js from https://raw.githubusercontent.com/janlelis/yyid.js/master/yyid.js

Usage

import yyid from "yyid"
yyid(); // => 'ee1c3727-d589-729b-4ad9-a37f77173730'

Other Versions

YYID is available for more languages, such as Ruby, Elixir, and Rust.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.1
    0
  • 2.0.0
    0
  • 1.0.0
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i yyid

Weekly Downloads

0

Version

2.0.1

License

MIT

Unpacked Size

6.06 kB

Total Files

9

Last publish

Collaborators

  • janlelis