
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
Dead simple config, read and save a javascript object from a file.
npm install m_config --save
const config = require('m_config')('./config.json');
// save important config...
// save replaces the files contents
config.save({
wrong: true
})
// saves file: config.json with { wrong: true }
config.save({
demo: '123',
hi_ho_silver: true,
herp_derp: false
});
// non destructive merging...
config.merge({ a: true })
.merge({ b: false })
.merge({ c: 'hi ho silver!' })
.load(function (err, data) {
if(!err) console.log(data);
});
// file contents has been replaced with the above options.
// load saved config...
config.load(function (err, config) {
if (!err) {
console.log(typeof config); // 'object'
console.log(config.demo); // '123'
console.log(config.wrong) // undefined
}
})
config.save({
should_not_see_me: 'yolo!!'
}).empty();
FAQs
retrieve and set config from a flat JSON file
The npm package m_config receives a total of 0 weekly downloads. As such, m_config popularity was classified as not popular.
We found that m_config 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.