strkits
v1.2.0
Published
String transform module
Downloads
9
Maintainers
Readme
Table of contents
- Table of contents
- API
StrKits.isUpperCase()
StrKits.isSpecialCharacter()
StrKits.strip(subject: string, characters: string | string[] | Readonly<string[]>)
StrKits.removedMultiplesCharacters()
StrKits.replaceRange()
StrKits.transform
API
StrKits.isUpperCase()
StrKits.isSpecialCharacter()
StrKits.strip(subject: string, characters: string | string[] | Readonly<string[]>)
Work like String strip()
in python
. See Python String strip() Method
import StrKits, { strip } from 'strkits';
const txt:string = ",,,,,rrttgg.....banana....rrr"
console.log(StrKits.strip(txt, ",.grt"));
// banana
console.log(strip(txt, ",.grt"));
// banana
StrKits.removedMultiplesCharacters()
StrKits.replaceRange()
StrKits.transform
StrKits.transform.toCamelCase()
StrKits.transform.toPascalCase()
StrKits.transform.toKebabCase()
StrKits.transform.toSnakeCase()
StrKits.transform.toTitleCase()
StrKits.transform.toSpecialCase()