🌍 A JavaScript string manipulation library. CJS & ESM compatible.
npm i -S str
npm i -S strconst slugify = require('str/slugify')import slugify from 'str/slugify'slugify('mAnElEt') // manelet
🛠 A complete set of functions for string manipulation that will cover your needs both in back and frontend.
⚡️ Lightweight, just 483 bytes
✌️ Both CJS & ESM compatible.
slugify("I'm Manel", delimeter = '-') // im-manel
camelcase("I'm Manel") // imManel
startsWidth("I'm Manel", "I") // true
endsWith("I'm Manel", "el") // true
upper("I'm Manel") // I'M MANEL
lower("I'm Manel") // i'm manel