@roninski/string-toolkit

1.1.0 • Public • Published

@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-toolkit

or via yarn

yarn add @roninski/string-toolkit

Usage

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 test

Contributing

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @roninski/string-toolkit

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

8.59 kB

Total Files

11

Last publish

Collaborators

  • roninski