WLCR Utilities
A library of Typescript-friendly utilities designed for interal use at WLCR.io
Installation
Simple add via npm or your package manager of choice
npm i @wlcr/utils
Usage
Import utils as needed:
import { handleize } from '@wlcr/utils';
Available Utilities
Handleize
Convert strings to a handle-friendly format (kebab-case, no special characters), which are useful for url paths, keys, etc.
import { handleize } from '@wlcr/utils';
console.log(handleize('Test String with spaces and special characters!'))
// Output: test-string-with-spaces-and-special-characters