Catalog npm
PACKAGE EXPLORERView in registry

7id

npm

Random base32 string generator for unique ID usage.

base32generatoridrandomstringunique
Versions collected2
Direct dependencies0From release 1.0.0
Last observed20 Oct, 21:09 UTC

README

Current package documentation

7ID

Random base32 (RFC 4648 without padding) string generator for unique ID usage.

This library includes the function generate(), which accepts a number of bytes to be used by crypto on it's function randomBytes().

The proportion of characters generated and the length of bytes requested is 5/16 (0.3125). Each 5 bytes, 16 characters are generated. 10 bytes output is a string of 32 characters.

Collision probability

The probability depends on the bytes length informed.

On a practical test of collision, the genetions that colided was:

Generations
16690357
20813326
30091557
30288983
40839999
43867276
44935582
(…)

Usage

Example

const thitySixID = require('7id')

let result = thitySixID.generate(6)

console.log(result)

Output example

'G42WCY3CMVSTOOLGGIYQ'

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 2

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.0Registry latest29 Sept 20190
0.9.012 Feb 20182

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
tecnospeed/7id

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:09 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:ba69a96785d15335f409a62fc80bb6545a0be65f2f4863b683c9f2174b202547