Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
An alternative client library for interacting with etcd from node.js (without coffeescrpt). If you don't mind having coffeescript dependencies, there is already is a module for that.
This is not stable at all! I am writing this module as I learn more about etcd, feel free to help!
$ npm install etcd
I made the client a singleton for the time being (up for suggestions). If you need to set host
or port
, use the configure
method.
var etcd = require('etcd');
etcd.configure({
host: '127.0.0.1',
port: 40001
});
NOTE: I still need to add SSL support.
I am still implementing commands, but here is what we have so far:
etcd.set('hello', 'world', function (err) {
if (err) throw err;
});
Set with a TTL:
etcd.set('hello', 'world', { ttl: 5 }, function (err) {
if (err) throw err;
});
Set using a "setAndTest":
etcd.set('hello', 'world', { prev: 'world' }, function (err) {
if (err) throw err;
});
etcd.get('hello', function (err, result) {
if (err) throw err;
assert(result.value);
});
etcd.del('hello', function (err) {
if (err) throw err;
});
etcd.list('prefix', function (err, items) {
if (err) throw err;
});
etcd.watch('prefix', function (err) {
if (err) throw err;
});
etcd.machines(function (err, list) {
if (err) throw err;
});
etcd.leader(function (err, host) {
if (err) throw err;
});
MIT
FAQs
etcd client for node
The npm package etcd receives a total of 7 weekly downloads. As such, etcd popularity was classified as not popular.
We found that etcd 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.