
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.
nconf-etcd2
Advanced tools
An nconf backend store for Etcd2
npm install nconf nconf-etcd2 --save
An ETCD2 backend for nconf
var Store = require('nconf-etcd2')
var s = new Store({namespace:'test'});
var assert = require('assert')
s.load(function(err,data){
assert.equal( err, null )
s.set('a:b:c:d',2);
s.save(function( err ){
s.store = {};
s.load( function(e,d){
assert.equal( 2,~~s.get('a:b:c:d') );
done();
});
});
});
var nconf = require('nconf');
var Etcd = require('nconf-etcd2'); // tries to attach to the nconf instance
nconf.use('etcd', { /* options */ });
nconf.load(console.log);
var nconf = require('nconf');
var Etcd = require('nconf-etcd2'); // tries to attach to the nconf instance
nconf.use('etcd', { namespace:'test', hosts:['192.168.0.1:4001', '10.50.5.1:4001']});
nconf.load();
nconf.set( 'a:b:c', 1);
nconf.save(); // Saved to etc!
var nconf = require('nconf');
var Etcd = require('nconf-etcd2'); // tries to attach to the nconf instance
nconf.use('etcd', { namespace:'test:foo', hosts:['192.168.0.1:4001', '10.50.5.1:4001']});
nconf.load();
nconf.get( 'a:b:c');
nconf.save(); // Saved to etc!
var nconf = require('nconf');
var Etcd = require('nconf-etcd2'); // tries to attach to the nconf instance
nconf.use('etcd', { namespace:'test-nested', logicalSeparator:'-' hosts:['192.168.0.1:4001', '10.50.5.1:4001']});
nconf.load();
nconf.set( 'a-b-c', 1);
nconf.save(); // Saved to etc!
FAQs
An Etcd2 backend for nconf
The npm package nconf-etcd2 receives a total of 27 weekly downloads. As such, nconf-etcd2 popularity was classified as not popular.
We found that nconf-etcd2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.