Skip to content

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

License

Notifications You must be signed in to change notification settings

random-access-storage/random-access-memory-overlay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published