Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.