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 3.2.1 to 4.0.0

2

index.d.ts

@@ -31,2 +31,2 @@ declare namespace snakecaseKeys {

export = snakecaseKeys;
export default snakecaseKeys;
{
"name": "snakecase-keys",
"main": "index.js",
"version": "3.2.1",
"version": "4.0.0",
"description": "Convert an object's keys to snake case",

@@ -37,4 +37,4 @@ "license": "MIT",

"engines": {
"node": ">=8"
"node": ">=12"
}
}

@@ -16,8 +16,8 @@ # snakecase-keys [![tests](https://github.com/bendrucker/snakecase-keys/workflows/tests/badge.svg)](https://github.com/bendrucker/snakecase-keys/actions?query=workflow%3Atests)

```js
var snakeCaseKeys = require('snakecase-keys')
var snakecaseKeys = require('snakecase-keys')
snakeCaseKeys({fooBar: 'baz'})
snakecaseKeys({fooBar: 'baz'})
//=> {foo_bar: 'baz'}
snakeCaseKeys({'foo-bar': true, nested: {fooBaz: 'bar'}});
snakecaseKeys({'foo-bar': true, nested: {fooBaz: 'bar'}});
//=> {foo_bar: true, nested: {foo_baz: 'bar'}}

@@ -28,3 +28,3 @@ ```

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

@@ -31,0 +31,0 @@ ##### obj

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