@codinasion/constant-case-string-to-snake-case-string
v1.0.3
Published
Converts a constant case string to a snake case string
Downloads
3
Maintainers
Readme
@codinasion/constant-case-string-to-snake-case-string
Convert a constant case string to a snake case string.
Installation
# if you're using pnpm
pnpm add @codinasion/constant-case-string-to-snake-case-string
# or, if you're using npm
npm install @codinasion/constant-case-string-to-snake-case-string
# or, if you're using yarn
yarn add @codinasion/constant-case-string-to-snake-case-string
Usage
import { ConstantCaseStringToSnakeCaseString } from "@codinasion/constant-case-string-to-snake-case-string";
const string = "HELLO_WORLD";
console.log(ConstantCaseStringToSnakeCaseString(string));
// Output
// hello_world