Skip to content

ryanvdev/strkits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of contents

  1. Table of contents
  2. API
  3. StrKits.isUpperCase()
  4. StrKits.isSpecialCharacter()
  5. StrKits.strip(subject: string, characters: string | string[] | Readonly<string[]>)
  6. StrKits.removedMultiplesCharacters()
  7. StrKits.replaceRange()
  8. StrKits.transform
    1. StrKits.transform.toCamelCase()
    2. StrKits.transform.toPascalCase()
    3. StrKits.transform.toKebabCase()
    4. StrKits.transform.toSnakeCase()
    5. StrKits.transform.toTitleCase()
    6. StrKits.transform.toSpecialCase()

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()

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published