kanziw / snakify

Convert keys to snake case

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Convert keys to snake case


Languages

Language:JavaScript 100.0%