🆔 YAID-js
Javascript implementation of Yet Another ID
Install
npm install yaid
copy success
Usage
import { New, Parse } from "yaid";
// Create a new random id
const id = New();
// Parse an existing id
id = Parse("4X85W9A0Y9TQP");
copy success
Command line
This package comes with a commandline utility called yaid
.
yaid 4X85VYWZC9ABP
copy success
Set metadata
yaid -m 123 4X85W9A0Y9TQP
copy success
Show info
yaid -i 4X85W9A0Y9TQP Time: 2023-07-05 01:31:57.440000 Meta: 123
copy success
Develop
This package uses bun.
Build
npm run build
copy success
Lint
npm run lint
copy success
Test
npm run test
copy success