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