
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.
node-ramdevice
Advanced tools
(This repository is a fork of node-ramdisk). Our CI is on a windows machine, even though the application using this module are not running on windows. In order for us to be able to build it, we are removing the os targets of darwin and linux from the module's package.json.
If you need to use a library. Please refer to the original one at https://github.com/joaquimserafim/node-ramdisk.
create a ram disk with node.js
var ramdisk = require('node-ramdisk')
return a ramdisk object
var disk = ramdisk('my_ramdisk')
Note: delete will eject the volume and remove the mount folder
var ramdisk = require('node-ramdisk')
var disk = ramdisk('my_ramdisk')
var volumePoint
// create a disk with 100MB of size
disk.create(100, function (err, mount) {
if (err) {
console.log(err)
} else {
volumePoint = mount
console.log(mount)
}
})
// when isn't needed then delete the disk
disk.delete(volumePoint, function (err) {
if (err) {
console.log(err)
} else {
console.log('ok')
}
})
DEBUG=node-ramdisk ...
to run test
npm test
to run jshint
npm run jshint
to run code style
npm run code-style
to run check code coverage
npm run check-coverage
to open the code coverage report
npm run open-coverage
FAQs
create a ram disk with node.js
The npm package node-ramdevice receives a total of 0 weekly downloads. As such, node-ramdevice popularity was classified as not popular.
We found that node-ramdevice 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.