
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
appstoragejs
Advanced tools
LocalStorage for Node.js, auto syncing for objects with JSON files using the Proxy API
LocalStorage for Node.js, auto syncing for objects with JSON files using the Proxy API
npm install --save appstoragejs
Use the ES6 Proxy API to set traps to recursively watch changes on an object and sync it automatically with a JSON
file within the current event loop phase using fs.writeFileSync
.
Good for
CLI tools, storing configs, user preferences, cached data, states, etc.Bad for
production applications, scalable or high-performance applications, web servers, etc.data.json
on every change within the current event loop phase.data.json
when the app starts.var AppStorage = require('appstoragejs');
// Create a new AppStorage
var appStorage = new AppStorage('data.json');
// Just do anything with your object !
appStorage.name = 'Bob';
appStorage.age = 13;
appStorage.records = [1,2,3,4];
You can define your AppStorage object as a global
object to be used anywhere within your app.
global.appStorage = appStorage;
This project is under the MIT license.
FAQs
LocalStorage for Node.js, auto syncing for objects with JSON files using the Proxy API
The npm package appstoragejs receives a total of 0 weekly downloads. As such, appstoragejs popularity was classified as not popular.
We found that appstoragejs 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.