
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
json-autosave
Advanced tools
I have mutable state that must be kept after restarts.
I use…
var autosave = require('json-autosave');
var stats = autosave('stats.json');
stats.data = { pageViews: 0 };
autosave(filename, options)
returns a JsonSave object.
Options:
interval
: how frequently (in milliseconds) we should ensure that the data is
saved.data
: default data if it does not already exist.save.data
: mutable JS object that will be saved to JSON on disk
automatically. You can set it to whatever you like or change any property it
has. The only restriction is that it must be JSON-serializable.
save.setInterval(ms)
changes the frequency with which we save the
data.
save.stop()
prevents saving data updates to disk.
save.start()
resumes saving data to disk.
FAQs
Automatically save a JSON-serializable object.
The npm package json-autosave receives a total of 7 weekly downloads. As such, json-autosave popularity was classified as not popular.
We found that json-autosave 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.