@csquare/c2id
v0.1.1
Published
Generate base62-encoded unique identifiers
Downloads
17
Readme
@csquare/c2id
Generate nearly unique base62-based ids.
Maintained by Mathieu Bour, Lead Platform Engineer at Cohesive Computing SA.
Installation
Install with npm:
npm install --save @csquare/c2id
Install with Yarn:
yarn add @csquare/c2id
Usage
Basic usage
Using CommonJS syntax:
const { c2id } = require('@csquare/c2id');
const output = c2id();
Using ESM syntax (default import):
import c2id from '@csquare/c2id';
const output = c2id();
or
import { c2id } from '@csquare/c2id';
const output = c2id();