@dominik1905/string-toolkit
v1.1.0
Published
[cite_start]A small, useful JavaScript library that provides string manipulation functions.
Readme
String Toolkit
[cite_start]A small, useful JavaScript library that provides string manipulation functions.
Installation
[cite_start]You can install this package using npm or yarn:
npm: npm install @dominik1905/string-toolkit
yarn: yarn add @dominik1905/string-toolkit
Usage
[cite_start]Here are detailed examples of how to use the available functions.
toKebabCase
Converts a string to kebab-case (lowercase words separated by dashes).
const { toKebabCase } = require('@dein_npm_benutzername/string-toolkit');
const result = toKebabCase("Hello World");
console.log(result); // Output: "hello-world"
toSnakeCase
[cite_start]Converts a string to snake_case (lowercase words separated by underscores)[cite: 9].
const { toSnakeCase } = require('@dominik1905/string-toolkit');
const result = toSnakeCase("Hello World");
console.log(result); [cite_start]// Output: "hello_world" [cite: 9, 10]
