A lightweight JavaScript utility library designed for transforming strings into different cases.
- toSnakeCase: Converts a string to snake_case.
- toKebabCase: Converts a string to kebab-case.
Install via npm:
npm install @roninski/string-toolkit
or via yarn
yarn add @roninski/string-toolkit
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"
This project uses Jest for unit testing. To run the tests, execute:
npm test
We welcome contributions! Please refer to our CONTRIBUTING.md for detailed guidelines on submitting issues and pull requests.
Please refer to our SECURITY.md for information about our security policies, how to report vulnerabilities, and our approach to handling security concerns.
This project is licensed under the MIT License. See LICENSE.md for more details.