snakecase-keys
Advanced tools
Comparing version 3.2.1 to 4.0.0
@@ -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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4440