🚀 Launch Week Day 3:Introducing Supply Chain Attack Campaigns Tracking.Learn More →
Socket
Book a DemoInstallSign in
Socket

random-access-memory-overlay

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

random-access-memory-overlay

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

latest
Source
npmnpm
Version
3.0.0
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 14 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts