proxy-tree
v0.0.2
Published
Write dynamic API wrappers with trees of Proxy
Downloads
6
Readme
proxy-tree
Usage
const proxyTree = require("proxy-tree");
const tree = proxyTree((path, args) => {
console.log(path, args);
});
tree.a.b.c.d.e.f.g("Hello, World!");
// [ 'a', 'b', 'c', 'd', 'e', 'f', 'g' ] [ 'Hello, World!' ]