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