Ketch Object ID
npm install @ketch-com/oid-jsKetch Object ID library in TypeScript.
Example OID's:
2GUTcoh54LjIgVmziQ5812
2GUTiLeCNBq6uBhavno132
2GUToEhtDHr8qBMLay1KPV
``shell script`
npm install -D @ketch-com/oid-js
To create a new OID, use newOID:
`typescript`
const o = newOID()
To get the string representation of an existing OID, use o.toString():
`typescript`
const s = o.toString()
To get the byte array representation of an existing OID, use o.toBytes():
`typescript``
const b = o.toBytes()