You can pass an options object as the second argument to slugify to customize the transformation process.
Available options:
replacement: Character used to replace spaces. Defaults to '-'.remove: A regular expression or a single character used to remove specific characters from the result. Defaults to undefined.lower: Boolean to convert the result to lower case. Defaults to false.strict: Boolean to strip special characters except the replacement character. Defaults to false.locale: ISO 639-1 language code to use for specific transliterations. Defaults to 'vi'.trim: Boolean to trim leading and trailing replacement characters. Defaults to true.
slugify('some string', {
replacement: '-', // replace spaces with replacement character, defaults to `-`
remove: undefined, // remove characters that match regex, defaults to `undefined`
lower: false, // convert to lower case, defaults to `false`
strict: false, // strip special characters except replacement, defaults to `false`
locale: 'vi', // language code of the locale to use
trim: true // trim leading and trailing replacement chars, defaults to `true`
})