0.0.1 • Published 4 years ago

etcd3-mock v0.0.1

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

etcd3-mock

example

import { EtcdMock } from 'etcd3-mock';

const etcd3 = new Etcd3Mock();

async function main() {
  await etcd.put('/toonew/1').value('sx1');
  await etcd.put('/toonew/2').value('sx2');

  const result = await etcd.getAll().prefix('/toonew/').strings();
  console.info(result);
}

the mock just implement simple api. if u need more api support please input issues or pr.

哈哈!~!~

if use the library in typescript code. need Etcd3Mock as Etcd3

License

Nest is MIT licensed.