1.0.3 • Published 10 months ago
@codinasion/camel-case-string-to-snake-case-string v1.0.3
@codinasion/camel-case-string-to-snake-case-string
Converts a camel case string to a snake case string.
Installation
# if you're using pnpm
pnpm add @codinasion/camel-case-string-to-snake-case-string
# or, if you're using npm
npm install @codinasion/camel-case-string-to-snake-case-string
# or, if you're using yarn
yarn add @codinasion/camel-case-string-to-snake-case-string
Usage
import { CamelCaseStringToSnakeCaseString } from "@codinasion/camel-case-string-to-snake-case-string";
const string = "helloWorld";
console.log(CamelCaseStringToSnakeCaseString(string));
// Output
// hello_world