Socket
Book a DemoInstallSign in
Socket

stringify-keys

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stringify-keys

Build an array of key paths from an object.

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
936
-2.3%
Maintainers
1
Weekly downloads
 
Created
Source

stringify-keys NPM version

Build an array of key paths from an object.

Install

Install with npm

npm i stringify-keys --save

Run tests

npm test

Usage

var stringify = require('stringify-keys');

API

stringify

Build an array of key paths from an object.

  • base {String}: Base to add to the path (used in recursion)
  • obj {Object}: Object to use
  • sep {String}: Use a different seperator than '.'
  • returns {Array}: Array of key paths
var stringify = require('stringify-keys');
var obj = {
  a: 'A',
  b: {
    c: 'C'
  }
};
var keys = stringify(obj);
//=> ['a', 'b.c']

## Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/doowb/stringify-keys/issues)

## Author

**Brian Woodward**
 
+ [github/doowb](https://github.com/doowb)
+ [twitter/doowb](http://twitter.com/doowb) 

## License
Copyright (c) 2014 Brian Woodward  
Released under the MIT license

***

_This file was generated by [verb](https://github.com/assemble/verb) on December 22, 2014._

FAQs

Package last updated on 22 Dec 2014

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