Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

snakecase-keys

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snakecase-keys - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

6

index.js

@@ -6,6 +6,8 @@ 'use strict'

module.exports = function (obj) {
module.exports = function (obj, options) {
options = Object.assign({deep: true}, options)
return map(obj, function (key, val) {
return [snakeCase(key), val]
}, {deep: true})
}, options)
}
{
"name": "snakecase-keys",
"main": "index.js",
"version": "1.1.1",
"version": "1.2.0",
"description": "Convert an object's keys to snake case",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -27,3 +27,3 @@ # snakecase-keys [![Build Status](https://travis-ci.org/bendrucker/snakecase-keys.svg?branch=master)](https://travis-ci.org/bendrucker/snakecase-keys)

#### `snakeCaseKeys(obj)` -> `object`
#### `snakeCaseKeys(obj, options)` -> `object`

@@ -37,2 +37,14 @@ ##### obj

##### options
*Optional*
Type: `object`
###### deep
Type: `boolean`
Default: `true`
Enables snake-casing of keys in nested objects.
## Related

@@ -39,0 +51,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc