Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/kanziw/snakify
- Owner: kanziw
- Created: 2020-02-23T08:21:40.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T08:04:02.000Z (about 2 years ago)
- Last Synced: 2024-04-25T08:20:59.129Z (9 months ago)
- Language: JavaScript
- Size: 792 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
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.