recursive-keys
v0.9.0
Published
Object.keys recursively
Downloads
768
Readme
npm-recursive-keys
Object.keys recursively
Supported Node.js and Browsers
Node.js >= 0.10.0
Chrome
Firefox
Safari
Mobile Safari
PhantomJS
IE10
,IE9
,IE8
,IE7
(..probably!)
Examples of Use
Node.js
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"
// ]
Browsers
Please install by copying the recursive_keys.js.
<script src="/path/to/recursive_keys.js"></script>
var dumpKeysRecursively = recursiveKeys.dumpKeysRecursively;
Development
Preparation
- Read package.json.
- Install PhantomJS. e.g.
brew install phantomjs
Deployment
git clone [email protected]:kjirou/npm-recursive-keys.git
cd ./npm-recursive-keys
npm install