@jenny2588/string-toolkit
v1.1.0
Published
A small library for string manipulation like toSnakeCase.
Maintainers
Readme
@yjenny25888/string-toolkit (Class 3 Exercise)
A small utility library that helps you manipulate strings.
Version 1.1.0 includes two features: converting strings tosnake_caseandkebab-case.
Table of Contents
- Installation
- Usage
- Examples →
toSnakeCase("Hello World")→hello_world,toKebabCase("hello-world")->Hello World
- Examples →
- Contribution
- Security
- License
Installation
Install via npm:
npm install @jenny2588/string-toolkitInstall via yarn:
yarn add @jenny2588/string-toolkitUsage
Basic Usage to toSnakeCase Import:
import { toSnakeCase } from '@jenny2588/string-toolkit';
Examples
Convert a string to snake_case::
import { toSnakeCase, toKebabCase } from '@jenny2588/string-toolkit';
const title = "Hello World";
console.log(toSnakeCase(title));
console.log(toKebabCase(title));
Contribution
Contributions are welcome! Please see CONTRIBUTING.md for more details.
Security
If you discover a security vulnerability, please see our SECURITY.md for instructions on responsible disclosure.
License
This project is licensed under the MIT License.
