@darkwolf/push-id.cjs
v1.0.0
Published
Push ID
Downloads
6
Maintainers
Readme
Push ID
Install
ECMAScript (Node.js v12.x LTS or higher)
npm i --save @darkwolf/push-id.mjs
CommonJS (Node.js v10.x LTS or higher)
npm i --save @darkwolf/push-id.cjs
Using
// ECMAScript
import PushID from '@darkwolf/push-id.mjs'
// CommonJS
const PushID = require('@darkwolf/push-id.cjs')
const pushId = PushID.generate() // => '-MSAWSy_mM81Jtpapkpf'
const base62PushId = PushID.generateBase62() // => '0SNRDNOKchaXO5SgpJ32'
const base58PushId = PushID.generateBase58() // => '1jLoJJiLyzyxpjjcnsvf'