@ipld/printify
Version:
Convert a decoded IPLD value to a colored printable string
20 lines (15 loc) • 473 B
Markdown
# @ipld/printify
Convert a decoded IPLD value to a colored printable string
```javascript
import printify from '@ipld/printify'
import { CID } from 'multiformats/cid'
console.log(printify({
one: 1,
two: 'two',
three: {
link: CID.parse('QmWATWQ7fVPP2EFGu71UkfnqhYXDYH566qy47CnJDgvs8u'),
binary: new TextEncoder().encode('hello world')
}
}))
```
