@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()

Readme

Keywords

none

Package Sidebar

Install

npm i @ketch-com/oid-js

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

7.86 kB

Total Files

5

Last publish

Collaborators

  • sethswitchbit
  • ketch-ci