Skip to content

Convert a decoded IPLD value to a colored printable string

Notifications You must be signed in to change notification settings

ipld/js-printify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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

About

Convert a decoded IPLD value to a colored printable string

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •