Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

memory-chunk-store

mafintosh37.7kMIT1.3.5

In memory chunk store that is abstract-chunk-store compliant

abstract-chunk-store, chunk, in memory, in-memory, memory, store

readme

memory-chunk-store build status

In memory chunk store that is abstract-chunk-store compliant

abstract chunk store

Install

npm install memory-chunk-store

Usage

var mem = require('memory-chunk-store')
var chunks = mem(10)

chunks.put(0, new Buffer('01234567890'), function (err) {
  if (err) throw err
  chunks.get(0, function (err, chunk) {
    if (err) throw err
    console.log(chunk) // '01234567890' as a buffer
  })
})

License

MIT