JSPM

get-uid

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 514
  • Score
    100M100P100Q97510F
  • License Unlicensed

Generate unique integer id.

Package Exports

  • get-uid

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 (get-uid) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

get-uid Build Status Code Climate

Simple random id generator.

$ npm install get-uid

    var getUid = require('get-uid');

    getUid(); //1178851014
    getUid(); //811233864
    ...

Yet another one uid generator? There are already some:

  • gen-uid
  • unique
  • uid
  • uid2
  • uid-util
  • micro-uid
  • component-uid
  • j-uid
  • unique-id
  • uniqid
  • short-uid
  • puid
  • amp-unique-id
  • genuid
  • simple-uid
  • random-id
  • smart-id
  • uuid-pure
  • simple-random-id
  • nid

This one is just shorter and simpler, almost like id++, but with no bad side-effects. The technique is used innerly by Financial Times’ WeakSet, Web-components’ WeakMap and so on.

NPM