npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

@ipld/printify

0.1.29

@npm-service-account-ipld

npmHomeRepoSnykSocket
Downloads:122
$ npm install @ipld/printify
DailyWeeklyMonthlyYearly

@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