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