@roninski/string-toolkit
v1.1.0
Published
A lightweight JavaScript utility library designed for transforming strings into different cases.
Readme
@roninski/string-toolkit
A lightweight JavaScript utility library designed for transforming strings into different cases.
Table of Contents
Current functions
- toSnakeCase: Converts a string to snake_case.
- toKebabCase: Converts a string to kebab-case.
Installation
Install via npm:
npm install @roninski/string-toolkitor via yarn
yarn add @roninski/string-toolkitUsage
const { toSnakeCase, toKebabCase } = require('@roninski/string-toolkit');
console.log(toSnakeCase("Hello World")); // Output: "hello_world"const { toKebabCase } = require('@yourname/string-toolkit');
console.log(toKebabCase("Hello World")); // Output: "hello-world"Running Tests
This project uses Jest for unit testing. To run the tests, execute:
npm testContributing
We welcome contributions! Please refer to our CONTRIBUTING.md for detailed guidelines on submitting issues and pull requests.
Security
Please refer to our SECURITY.md for information about our security policies, how to report vulnerabilities, and our approach to handling security concerns.
License
This project is licensed under the MIT License. See LICENSE.md for more details.
