
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
atomic-json-store
Advanced tools
A configuration store adapted from configstore, with the following key differences:
config-root
)configstore
creates it upon instantiation)get
, atomic-json-store
does not create the parent directoryCreate a config at ~/.config/my-config.json
:
const JSONStore = require('atomic-json-store')
const root = require('config-root')
const config = JSONStore(root + '/my-config.json')
config.set('name', 'milly')
config.get('name')
config.toJSON()
config.delete('name')
config.clear()
store = Store(path, [options])
Options:
Instead of setting defaults, which are saved to the JSON file, use family-store
:
const JSONStore = require('atomic-json-store')
const FamilyStore = require('family-store')
const defs = FamilyStore('defaults', JSONStore('defaults.json'))
const beep = FamilyStore('beep', JSONStore('beep.json'))
beep.inherit(defs)
defs.set('port', 3000)
beep.get('port') // 3000
With npm do:
npm install atomic-json-store
BSD-2-Clause © ironSource. Original work © Google.
FAQs
Get and set configuration in a JSON file
The npm package atomic-json-store receives a total of 4 weekly downloads. As such, atomic-json-store popularity was classified as not popular.
We found that atomic-json-store 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.