Various functions to work with strings
Just import methods you need
import { length } from 'uc-strings'
return the proper length of the string. Counts the actual characters and not unicode surrogate pairs
return the proper substring from the string. Counts the actual characters and not unicode surrogate pairs
Removes #
symbol from the beginig of the string
Removes '
or "
quotes form the begining and end of the string
Transfroms _
or -
cases into camelCase
Return the function that accepts a number and return a string with corresponded word.
Optios are:
- zeroIsEmpty – boolean, default false. If true return empty string when number is zero.
Returns slugified string
License MIT
© velocityzen