etcd-result-objectify
Advanced tools
| sudo: false | ||
| language: node_js | ||
| node_js: | ||
| - "0.10" | ||
| - "4.*" | ||
| - "5.*" |
+1
-1
| module.exports = function nodeToObject(node, r_) { | ||
| var r = r_ || {} | ||
| var split = node.key.split('/').filter(Boolean) | ||
| var split = (node.key || '/').split('/').filter(Boolean) | ||
| var key = split[split.length - 1] | ||
@@ -5,0 +5,0 @@ |
+1
-1
| { | ||
| "name": "etcd-result-objectify", | ||
| "version": "0.1.0", | ||
| "version": "0.1.1", | ||
| "description": "Objectify the results of a recursive etcd query", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+3
-1
| # etcd-result-objectify | ||
| Objectify the results of a recursive etcd query. | ||
| [](https://travis-ci.org/mmalecki/etcd-result-objectify) | ||
| For example, a structure like: | ||
@@ -28,3 +30,3 @@ | ||
| ```sh | ||
| npm install etcd-result-objectify" | ||
| npm install etcd-result-objectify | ||
| ``` | ||
@@ -31,0 +33,0 @@ |
3488
6.83%7
16.67%45
4.65%