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