etcd3-mock

0.0.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i etcd3-mock

Weekly Downloads

8

Version

0.0.1

License

MIT

Unpacked Size

16.4 kB

Total Files

13

Last publish

Collaborators

  • litaixin01