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