random-access-memory-overlay

3.0.0 • Public • Published

random-access-memory-overlay

Random Access Storage instance that stores mutations in a memory overlay instead of writing them to the underlying storage.

npm install random-access-memory-overlay

Useful for fixtures etc.

Usage

const RAO = require('random-access-memory-overlay')

// make some storage instance
const file = new RandomAccessFile('./my-file')

// make an overlay
const overlay = new RAO(file)

// any mutations done to overlay (ie write, del) are just tracked in memory
// any reads go through the overlay and then the underlying storage

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.0.0
    50
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.0.0
    50
  • 2.0.1
    0
  • 2.0.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i random-access-memory-overlay

Weekly Downloads

50

Version

3.0.0

License

MIT

Unpacked Size

10 kB

Total Files

6

Last publish

Collaborators

  • mafintosh