@ketch-com/oid-js
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

oid

Ketch Object ID library in TypeScript.

Example OID's:

2GUTcoh54LjIgVmziQ5812
2GUTiLeCNBq6uBhavno132
2GUToEhtDHr8qBMLay1KPV

Installation

npm install -D @ketch-com/oid-js

Usage

NewOID

To create a new OID, use newOID:

const o = newOID()

toString()

To get the string representation of an existing OID, use o.toString():

const s = o.toString()

toBytes()

To get the byte array representation of an existing OID, use o.toBytes():

const b = o.toBytes()

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.10latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.10
1.0.00
0.3.110
0.3.100
0.3.90
0.3.80
0.3.70
0.3.60

Package Sidebar

Install

npm i @ketch-com/oid-js

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

7.86 kB

Total Files

5

Last publish

Collaborators

  • sethswitchbit
  • ketch-ci