
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
The simplest way to store variables in configuration files. It provides an object synchronized with the file, ensuring data is saved each time you set properties.
Works similarly to localStorage for Node.js, but no manual serialization is needed. A perfect solution for storing API authentication data without involving a database.
Based on ES6 proxy, this package ensures seamless and automatic data persistence. Ideal for configuration management, file-based storage, and handling settings in Node.js applications.
npm install --save syncfg
// import
import syncfg from 'syncfg'
// initalize
const config = syncfg('path/to/config.json')
// Setting a parameter updates the file automatically
config.param = 'value'
// Reading a parameter
console.log(config.param)
// Deleting a parameter
delete config.param
// Setting multiple parameters but writing to the file once
config.setMultiple({a:1, b:2})
// Reading multiple parameters.
const {param1, param2} = config
Internet Systems Consortium License
Configuration management, config file, localStorage alternative, Node.js storage, automatic serialization, API keys storage, ES6 proxy, file synchronization, data persistence, Node.js settings, JSON storage, config manager, Node.js config, file-based storage, Node.js persistence, settings management.
FAQs
The Simplest way to store variables in configuration files
We found that syncfg 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.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.