snakify

Convert keys to snake case

Usage no npm install needed!

<script type="module">
  import snakify from 'https://cdn.skypack.dev/snakify';
</script>

README

snakify

Convert keys to snake case

Installation

Using npm:

$ npm i snakify

In Node.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 for other usage.