8.0.0 • Published 4 years ago

ipld-in-memory v8.0.0

Weekly downloads
1,995
License
MIT
Repository
github
Last release
4 years ago

ipld-in-memory

Build Status dependencies Status JavaScript Style Guide

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-memory

Usage

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.

8.0.0

4 years ago

7.0.0

4 years ago

6.0.0

4 years ago

4.1.0

4 years ago

5.0.0

4 years ago

3.0.4

5 years ago

4.0.0

5 years ago

3.0.3

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.0.0

6 years ago

1.0.0

6 years ago