utilitish - v0.0.10
Preparing search index...
utils/slugify.config
SlugifyConfigBuilder
Class SlugifyConfigBuilder
Index
Constructors
constructor
Properties
custom
Replacements
separator
case
remove
Accents
allowed
Chars?
max
Length?
transformers
Methods
with
Custom
Replacements
with
Separator
with
Case
with
Remove
Accents
with
Allowed
Chars
with
Max
Length
with
Transformers
build
Constructors
constructor
new
SlugifyConfigBuilder
()
:
SlugifyConfigBuilder
Returns
SlugifyConfigBuilder
Properties
custom
Replacements
customReplacements
:
Record
<
string
,
string
>
= {}
separator
separator
:
string
= '-'
case
case
:
"upper"
|
"lower"
|
"default"
= 'lower'
remove
Accents
removeAccents
:
boolean
= true
Optional
allowed
Chars
allowedChars
?:
RegExp
Optional
max
Length
maxLength
?:
number
transformers
transformers
:
(
(
str
:
string
)
=>
string
)
[]
= []
Methods
with
Custom
Replacements
withCustomReplacements
(
replacements
:
Record
<
string
,
string
>
)
:
this
Parameters
replacements
:
Record
<
string
,
string
>
Returns
this
with
Separator
withSeparator
(
separator
:
string
)
:
this
Parameters
separator
:
string
Returns
this
with
Case
withCase
(
caseValue
:
"upper"
|
"lower"
|
"default"
)
:
this
Parameters
caseValue
:
"upper"
|
"lower"
|
"default"
Returns
this
with
Remove
Accents
withRemoveAccents
(
remove
:
boolean
)
:
this
Parameters
remove
:
boolean
Returns
this
with
Allowed
Chars
withAllowedChars
(
regex
?:
RegExp
)
:
this
Parameters
Optional
regex
:
RegExp
Returns
this
with
Max
Length
withMaxLength
(
length
?:
number
)
:
this
Parameters
Optional
length
:
number
Returns
this
with
Transformers
withTransformers
(
transformers
:
(
(
str
:
string
)
=>
string
)
[]
)
:
this
Parameters
transformers
: (
(
str
:
string
)
=>
string
)
[]
Returns
this
build
build
()
:
SlugifyConfig
Returns
SlugifyConfig
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
custom
Replacements
separator
case
remove
Accents
allowed
Chars
max
Length
transformers
Methods
with
Custom
Replacements
with
Separator
with
Case
with
Remove
Accents
with
Allowed
Chars
with
Max
Length
with
Transformers
build
utilitish - v0.0.10
Loading...