Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kanziw/snakify

Convert keys to snake case
https://github.com/kanziw/snakify

Last synced: 2 months ago
JSON representation

Convert keys to snake case

Awesome Lists containing this project

README

        

# snakify

Convert keys to snake case

## Installation

Using npm:

```bash
$ npm i snakify
```

In Node.js:

```js
import snakify from 'snakify' // const snakify = require('snakify');

snakify({ numVal: 1, strVal: 'camelCase', boolVal: true })
// { num_val: 1, str_val: 'camelCase', bool_val: true }
```

See the [test-case](./snakify.test.js) for other usage.