@abdullahhakimi/string-toolkit
v1.1.0
Published
Ein nützliches Toolkit für String-Konvertierungen (snake_case, kebab_case)
Maintainers
Readme
@abdullahhakimi/string-toolkit
A small, useful JavaScript library for string manipulation. Created as part of the Self Study 3 Exercise.
Features
- toSnakeCase: Convert strings to
snake_case. - toKebabCase: Convert strings to
kebab-case.
Installation
Install via npm:
npm install @abdullahhakimi/string-toolkitOr via yarn:
yarn add @abdullahhakimi/string-toolkitUsage
const { toSnakeCase, toKebabCase } = require('@abdullahhakimi/string-toolkit');
// Example: Hello World
console.log(toSnakeCase('Hello World')); // hello_world
console.log(toKebabCase('Hello World')); // hello-world
// Example: Camel Case
console.log(toSnakeCase('myTestString')); // my_test_string
console.log(toKebabCase('myTestString')); // my-test-string
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for details on how to submit issues or pull requests.
License
This project is licensed under the MIT License - see the LICENSE.md file for details.
