@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
Sponsors & Backers
Made with 💖 by Codinasion