Package Exports
- ipld-in-memory
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 (ipld-in-memory) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ipld-in-memory
IPLD in your RAM
This is the util to create an in memory IPLD instance that the ipld module used to export but as a separate module.
Install
npm install ipld-in-memoryUsage
const IPLD = require('ipld')
const inMemory = require('ipld-in-memory')
// options object to be passed to the IPLD constructor -
// this module sets the 'blockService' property in the options object
// so any passed value for that key will be ignored
const ipldOpts = {}
const ipld = await inMemory(IPLD, ipldOpts)
// ipld is an instance of IPLD (https://www.npmjs.com/package/ipld) configured
// to use an in memory repo for storage!Contribute
Feel free to dive in! Open an issue or submit PRs.
License
MIT © Protocol Labs, Inc.