@ainc/string
v0.1.0
Published
Let's do something nice with @ainc/string!
Downloads
12
Readme
@ainc/string
string
Install
$ yarn add @ainc/string
Usage
import * as str from '@ainc/string';
Api
- words(str: string): string[]
- join(arr: string[], ...sep: string[]): string
- split(str: string, sep: string): string[]
- separate(str: string, ...sep: string[]): string[]
- lowerFirst(str: string): string
- upperFirst(str: string): string
- lowerCase(str: string): string
- upperCase(str: string): string
- camelCase(str: string): string
- pascalCase(str: string): string
- snakeCase(str: string): string
- kebabCase(str: string): string
- parse(str: string): object
- stringify(data: object): string
- isLowerCase(str: string): boolean
- isLowerCode(code: number): boolean
- isUpperCase(str: string): boolean
- isUpperCode(code: number): boolean
- isNumberCase(str: string): boolean
- isNumberCode(code: number): boolean