Converts a string to URL friendly slug. If value is not a string, it will be returned as it is.

Also it will handle ascii charmaps and converts to their utf-8 counter parts.

I am > than you

will become

const sanitizationRules = {
  slug: 'slug'

// or
const sanitizationRules = {
  slug: [

For customized build, you can import this rule as follows.

import { slug } from 'indicative/builds/validations'