Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.