@ipld/printify

Convert a decoded IPLD value to a colored printable string

Usage no npm install needed!

<script type="module">
  import ipldPrintify from 'https://cdn.skypack.dev/@ipld/printify';
</script>

README

@ipld/printify

Convert a decoded IPLD value to a colored printable string

const printify = require('@ipld/printify')
const CID = require('cids')

console.log(printify({
  one: 1,
  two: 'two',
  three: {
    link: new CID('QmWATWQ7fVPP2EFGu71UkfnqhYXDYH566qy47CnJDgvs8u'),
    binary: Buffer.from('hello world')
  }
}))

IMG_0055