@ipld/printify

0.1.13 • Public • Published

@ipld/printify

Convert a decoded IPLD value to a colored printable string

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')
  }
}))

IMG_0055

Readme

Keywords

none

Package Sidebar

Install

npm i @ipld/printify

Weekly Downloads

66

Version

0.1.13

License

(Apache-2.0 AND MIT)

Unpacked Size

13.5 kB

Total Files

7

Last publish

Collaborators

  • npm-service-account-ipld
  • lidel
  • alanshaw
  • vascosantos
  • achingbrain
  • rvagg
  • daviddias
  • mikeal
  • vmx