text-helper-js
v1.0.0
Published
A simple JavaScript library for text transformations: slugify, capitalize, and truncate text easily.
Maintainers
Readme
text-helper-js
A simple JavaScript library for text transformations: slugify, capitalize, and truncate text easily.
Installation
```bash npm install text-helper-js ```
Usage
```js const { toSlug, capitalize, truncate } = require("text-helper-js");
console.log(toSlug("مرحبا بالعالم!")); // مرحبا-بالعالم console.log(capitalize("hello world")); // Hello World console.log(truncate("This is a long text example", 10)); // This is a... ```
Contact
For updates and news, follow my WhatsApp channel: [https://whatsapp.com/channel/0029VbBIcV95kg7BmXTvDW2D]
