Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.