memory-chunk-store

1.3.5 • Public • Published

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

Dependents (16)

Package Sidebar

Install

npm i memory-chunk-store

Weekly Downloads

3,020

Version

1.3.5

License

MIT

Unpacked Size

5.04 kB

Total Files

5

Last publish

Collaborators

  • mafintosh
  • feross
  • noffle
  • jhiesey