0.2.0 • Published 12 years ago

zk-mkdirp v0.2.0

Weekly downloads
9
License
-
Repository
-
Last release
12 years ago

zk-mkdir-p

mkdir -p for the node-zookeeper C bindings.

Some thoughts on the current api: https://gist.github.com/2346472

Please comment on the gist with your thoughts, thanks.

Usage

var zookeeperConnection = new ZooKeeper({
	connect: options.zookeeper,
	timeout: options.timeout || 1000,
	debug_level: zkLogLevel,
	host_order_deterministic: false
});

var mkdirp = require('zk-mkdirp');

// ZK does not support ./file or /dir/../file
mkdirp(zookeeperConnection, '/a/deep/path/to/a/file', cb);

Other useful node & zookeeper projects

node bindings: https://github.com/yfinkelstein/node-zookeeper

leader elections: https://github.com/mcavage/node-leader

viewer/browser for stored data: https://github.com/killme2008/node-zk-browser