@instance-oom/node-zookeeper-client-async
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published
npm i @instance-oom/node-zookeeper-client-async
const zookeeper = require('@instance-oom/node-zookeeper-client-async');

const main = async () => {
  const client = zookeeper.createClient('127.0.0.1:2181');
  await client.connectAsync();

  const exists = await client.existsAsync(nodePath);
  console.log('exists', exists?.ctime?.toString('hex'));

  const { data, stat } = await client.getDataAsync(nodePath);
  console.log('getDataAsync', data.toString(), stat);

  await client.setDataAsync(nodePath, Buffer.from('xxx'));
}
main();

Readme

Keywords

none

Package Sidebar

Install

npm i @instance-oom/node-zookeeper-client-async

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

19.8 kB

Total Files

9

Last publish

Collaborators

  • dove2580