πŸ”– Node.js client for etcd3
ΠŸΠ΅Ρ€Π΅ΠΉΡ‚ΠΈ ΠΊ Ρ„Π°ΠΉΠ»Ρƒ
Connor Peet 268757f51e fix(codegen): call stack errors when regenerating proto fildes 2017-11-11 22:09:45 -08:00
bin fix(codegen): call stack errors when regenerating proto fildes 2017-11-11 22:09:45 -08:00
docs docs(*): rebuild 2017-07-11 22:03:11 -07:00
proto fix(codegen): call stack errors when regenerating proto fildes 2017-11-11 22:09:45 -08:00
src fix(codegen): call stack errors when regenerating proto fildes 2017-11-11 22:09:45 -08:00
test fix(watcher): debug code for flakey test 2017-10-15 21:19:56 -07:00
.editorconfig init 2017-04-09 22:25:42 -07:00
.gitignore fix(stm): address PR comments, add thorough tests and fix bugs 2017-10-15 20:47:01 -07:00
.npmignore Fix files being incorrectly npmignored 2017-04-13 14:52:49 -07:00
.travis.yml test(*): update Travis CI tests to include latest etcd and node 8 (#27) 2017-07-31 19:36:04 -07:00
LICENSE Initial working version of password auth 2017-06-02 08:49:38 -07:00
changelog.md doc(changelog): release 0.2.5 2017-09-30 11:09:04 -07:00
package.json fix(stm): address PR comments, add thorough tests and fix bugs 2017-10-15 20:47:01 -07:00
readme.md fix(stm): address PR comments, add thorough tests and fix bugs 2017-10-15 20:47:01 -07:00
tsconfig.json fix(stm): address PR comments, add thorough tests and fix bugs 2017-10-15 20:47:01 -07:00
tslint.json chore(*): update dependencies, formatting/linter 2017-09-30 11:05:20 -07:00

readme.md

etcd3 Build Status

etcd3 aims to be (with its first stable release) a high-quality, production-ready client for the Protocol Buffer-based etcdv3 API. It includes load balancing, reconnections, transactions, software transactional memory, high-level query builders and lease management, watchers, mocking, and is type-safe for TypeScript consumers.

Quickstart

Install via:

npm install --save etcd3

Start CRUD-ing!

const { Etcd3 } = require('etcd3');
const client = new Etcd3();

client.put('foo').value('bar')
  .then(() => client.get('foo').string())
  .then(value => console.log('foo was:', value))
  .then(() => client.getAll().prefix('f').strings())
  .then(keys => console.log('all our keys starting with "f":', keys))
  .then(() => client.delete().all());

API Documentation

Our TypeDoc docs are available here.

Our test cases are also quite readable.

Contributing

Running tests for this module requires running an etcd3 server locally. The tests try to use the default port initially, and you can configure this by setting the ETCD_ADDR environment variable, like export ETCD_ADDR=localhost:12345.