MCPcopy Create free account
hub / github.com/cameri/nostream / toBuffer

Function toBuffer

src/utils/transform.ts:107–107  ·  view source on GitHub ↗
(input: any)

Source from the content-addressed store, hash-verified

105export const toJSON = (input: any) => JSON.stringify(input)
106
107export const toBuffer = (input: any) => Buffer.from(input, 'hex')
108
109export const fromBuffer = (input: Buffer) => input.toString('hex')
110

Callers 12

transform.spec.tsFile · 0.90
applyHexCriteriaMethod · 0.90
deleteByPubkeyAndIdsMethod · 0.90
findByPubkeyMethod · 0.90
upsertMethod · 0.90
deleteByPubkeyMethod · 0.90
findByPubkeyMethod · 0.90
upsertVanishStateMethod · 0.90
getBalanceByPubkeyMethod · 0.90
admitUserMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected