https://github.com/ipld/js-printify
Convert a decoded IPLD value to a colored printable string
https://github.com/ipld/js-printify
Last synced: about 1 year ago
JSON representation
Convert a decoded IPLD value to a colored printable string
- Host: GitHub
- URL: https://github.com/ipld/js-printify
- Owner: ipld
- Created: 2019-06-04T22:06:25.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2025-04-15T00:50:57.000Z (about 1 year ago)
- Last Synced: 2025-04-15T01:36:35.815Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 64.5 KB
- Stars: 6
- Watchers: 17
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# @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')
}
}))
```
