
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
$ npm install ramdisk
This is just the easiest & quickest cross-platform solution that I just happened to come up with at the time. I mainly need it to test file system implementations and the like. The API is pretty much the same as blockdevice's, which features some crappy documentation on it. It's most likely worse than just reading the code. I'll work on it, I promise.
Thing is, it allocates sparsely (with the worst possible allocator (if you can even call it that) ever written to date) - meaning - you can specify 4 GB as size & you won't occupy 4 GB of memory, until you actually write to every sector.
var RamDisk = require( 'ramdisk' )
// Options, with their defaults
var device = new RamDisk({
// Emulated (?) device block size
blockSize: 512,
// Cluster size. It allocates in these.
clusterSize: 4096,
// The grand total (absolutely imaginary) size
// of the entire contraption!
size: 10 * 1024 * 1024,
})
// Supplying a buffer to .readBlocks() is optional
var buffer = new Buffer( device.blockSize )
device.readBlocks(
fromLBA, toLBA, buffer,
function( error, buffer, bytesRead ) {
// ...
}
)
FAQs
RAM disk which behaves like a BlockDevice
The npm package ramdisk receives a total of 3 weekly downloads. As such, ramdisk popularity was classified as not popular.
We found that ramdisk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.