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