npm install recursive-keysnpm-recursive-keys
==================
Object.keys recursively
- Node.js >= 0.10.0
- Chrome
- Firefox
- Safari
- Mobile Safari
- PhantomJS
- IE10, IE9, IE8, IE7 (..probably!)
``
var dumpKeysRecursively = require('recursive-keys').dumpKeysRecursively;
console.log(dumpKeysRecursively({
x: 1,
y: [1, 2],
z: {a: 1}
}));
// Output:
// [
// "x",
// "y.0",
// "y.1",
// "z",
// "z.a"
// ]
`
Please install by copying the recursive_keys.js.
``
``
var dumpKeysRecursively = recursiveKeys.dumpKeysRecursively;
- Read package.json.
- Install PhantomJS. e.g. brew install phantomjs
```
git clone git@github.com:kjirou/npm-recursive-keys.git
cd ./npm-recursive-keys
npm install