External module "lib/zh/table/list"
Type aliases
IOptions
IOptions
: { lang
?: "cn" | "jp" | "auto" | string; optionsZhTable
?: IOptionsZhTable; skip
?: any }
Type declaration
-
Optional lang?: "cn" | "jp" | "auto" | string
-
-
Optional skip?: any
Functions
arrCjk
- arrCjk(arr: string[], options?: IOptionsCjkConv): string[]
-
Parameters
-
arr: string[]
-
Default value options: IOptionsCjkConv = {}
Returns string[]
charTableList
- charTableList(text: string, options?: IOptions): string[][]
-
Parameters
-
text: string
-
Default value options: IOptions = {}
Returns string[][]
slugify
- slugify(input: string, options?: IOptions, unsafe2?: boolean): string
- slugify(input: string, unsafe2?: boolean): string
-
Parameters
-
input: string
-
Optional options: IOptions
-
Optional unsafe2: boolean
Returns string
-
Parameters
-
input: string
-
Optional unsafe2: boolean
Returns string
textList
- textList(text: string, options?: IOptions): string[]
-
Parameters
-
text: string
-
Default value options: IOptions = {}
Returns string[]
arrCjk(['司马', '上官', '欧阳', '夏侯']) // => [ '司马', '上官', '欧阳', '夏侯', '司馬', '歐陽', '欧陽' ]