0.1.9 • Published 2 years ago

megaid v0.1.9

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Mega ID

A collision-resistant ID generator.

~6 centuries of work are needed in order to have a 1% probability of at least one collision with the default id length (11 characters) when generating 100,000 ids per hour.

Install

npm install megaid

Usage

import { mgid } from "megaid"
const id = mgid() //=> "ϻYPnnϧϔλ7jO"

Security

  • Generating Megaid uses crypto api instead of Math.random(). The Crypto module uses unpredictable hardware random generator.

  • Symbols Megaid extends symbols by adding greek letters to reduce the probability of collision.

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago