https://github.com/montyanderson/proxy-tree
Write dynamic API wrappers with trees of Proxy
https://github.com/montyanderson/proxy-tree
api dynamic es6 node proxy
Last synced: about 1 month ago
JSON representation
Write dynamic API wrappers with trees of Proxy
- Host: GitHub
- URL: https://github.com/montyanderson/proxy-tree
- Owner: montyanderson
- License: mit
- Created: 2017-07-20T22:36:53.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-20T23:03:52.000Z (almost 8 years ago)
- Last Synced: 2024-10-04T18:36:58.167Z (8 months ago)
- Topics: api, dynamic, es6, node, proxy
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# proxy-tree
## Usage
``` javascript
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!' ]
```