string-utils-junse99
v3.0.0
Published
A utility library for string manipulation in JavaScript
Downloads
9
Readme
string-utils
A utility library for string manipulation in JavaScript.
Installation
npm install string-utils
Usage
import { capitalize, reverse, kebabCase, truncate } from 'string-utils';
console.log(capitalize('hello world')); // 'Hello world'
console.log(reverse('hello')); // 'olleh'
console.log(kebabCase('Hello World')); // 'hello-world'
console.log(truncate('This is a long string', 10)); // 'This is a...'
Contributing
Please submit issues or pull requests on GitHub.
License
This project is licensed under the MIT License - see the LICENSE file for details.