@edgeros/etcd3
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

@edgeros/etcd3

@edgeros/etcd3 support JSER and Node.js, production-ready client for the Protocol Buffer-based etcd v3 API. It includes:

and is type-safe for TypeScript consumers.

Quickstart

Install via:

npm install --save @edgeros/etcd3

[Node.js need install grpc manually]
npm install --save grpc

Start building!

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

(async () => {
  await client.put('foo').value('bar');

  const fooValue = await client.get('foo').string();
  console.log('foo was:', fooValue);

  const allFValues = await client.getAll().prefix('f').keys();
  console.log('all our keys starting with "f":', allFValues);

  await client.delete().all();
})();

API Documentation

Our TypeDoc docs are available here.

Our test cases are also readable.

Package Sidebar

Install

npm i @edgeros/etcd3

Weekly Downloads

1

Version

1.0.4

License

Apache-2.0

Unpacked Size

1.38 MB

Total Files

243

Last publish

Collaborators

  • clarkttfu
  • epmbot
  • xieyuanbin
  • chengyonbin