Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.
/ camelsnake Public archive

Convert JavaScript object keys between camel-case and snake-case

Notifications You must be signed in to change notification settings

nino/camelsnake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

camelsnake

Convert object keys between camel-case and snake-case.

Usage

import { camelize, snakify } from "camelsnake";

camelize({ key_with_underscores: { nested_object: 123 } });
// => { keyWithUnderscores: { nestedObject: 123 } }

snakify({ camelCaseKey: { nestedObject: 456 } });
// => { camel_case_key: { nested_object: 456 } }

About

Convert JavaScript object keys between camel-case and snake-case

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published