Skip to main content

Strings

import { slugify, truncate, capitalize, removeEmojis } from '@rtorcato/js-common/strings'

slugify('Hello World!') // "hello-world"
truncate('Lorem ipsum dolor', 10) // "Lorem ips…"
capitalize('hello world') // "Hello world"
removeEmojis('hi 👋 there 🎉') // "hi there "