New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

all-object-keys-deep

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

all-object-keys-deep

recursive get all keys of object

latest
Source
npmnpm
Version
2.2.3
Version published
Weekly downloads
4
-71.43%
Maintainers
1
Weekly downloads
 
Created
Source

WARNING! Package Is deprecated. Use the v3: object-end-keys

all-object-keys-deep

Install

npm i all-object-keys-deep -S

Usage example

var keys = require('all-object-keys-deep');

var options = {
    divider: '.', // is default
    iPrefix: '[', // default ''
    iSuffix: ']' // default ''
};

var obj =  {
    universal: true,
    hello: {
        world: {
            item: 'could be used in browser as well'
        }
    },
    array: ['a','b', {c: 'e'}]
};

keys(options, obj)
// returns
// ["universal", "hello.world.item", "array[0]", "array[1]", "array[2].c"]

keys(obj)
// returns
// ["universal", "hello.world.item", "array.0", "array.1", "array.2.c"]

Keywords

json

FAQs

Package last updated on 26 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts