Package Exports
- lnmap
- lnmap/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (lnmap) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
lnmap
Typed Map of IPLD links (CIDs) and values.
Install
npm i lnmapUsage
import { Map } from 'lnmap'
import { sha256 } from 'multiformats/hashes/sha2'
import * as raw from 'multiformats/codecs/raw'
import { CID } from 'multiformats/cid'
const key = CID.create(1, raw.code, sha256.digest(new Uint8Array()))
const value = 'any data'
const map = new Map()
map.set(key, value)
console.log(map.get(key)) // prints: "any data"Contributing
Feel free to join in. All welcome. Please open an issue!
License
Dual-licensed under MIT + Apache 2.0