
Research
/Security News
11 Malicious Go Packages Distribute Obfuscated Remote Payloads
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
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
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
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).