active
amp
amp: (str: string) => string
Animation
ansi_colors
apply_formatters: ( str: string, options: JSONObject,) => string | [string, number] CanvasRenderer
color_names
color_names: string[]
columns
columns: (arr: string[], cols: number, space: number) => string
Cycle
Cycle: (...args: any[]) => Cycle<any> data
data: string
defaults
encode
encode: (str: string) => string
escape_brackets
escape_brackets: (str: string) => string
escape_formatting: (str: string) => string
escape_regex
escape_regex: (str: string) => string
Exception
extended_command
format_split: (str: string) => string[]
formatter: any
FramesAnimation
from_ansi
have_formatting: (str: string) => boolean
History
History: (name?: string, size?: number, memory?: boolean) => History<any> is_formatting: (str: string) => boolean
iterate_formatting: (str: string, callback: (data: JSONObject) => void) => void last_id
last_id: () => number
length
length: (str: string) => number
normalize
normalize: (str: string) => string
overtyping
parse_argument
parse_argument: (arg: string, strict?: boolean) => string | number | RegExp parse_arguments
parse_arguments: (str: string) => (
string | number | RegExp)
[] parse_command
parse_formatting: (arg: string) => string[]
parse_options
parse_options: ( arg: string | string[], options?: { booleans: string[] },) => ParsedOptions pipe
prism
prism: (lang: string, text: string) => string
prism_formatters: {
animation: boolean;
command: boolean;
echo: boolean;
prompt: boolean;
}
Renderer
split_arguments
split_arguments: (str: string) => string[]
split_command
split_equal
split_equal: (str: string, len: number, keep_words?: boolean) => string[]
Stack
Stack: (init?: any[]) => Stack<any> strip
strip: (str: string) => string
substring
substring: (str: string, start_index: number, end_index: number) => string
syntax
syntax: (lang: string) => void
tracking_replace
unclosed_strings
unclosed_strings: (str: string) => boolean
unescape_brackets
unescape_brackets: (str: string) => string
valid_color
valid_color: (color: string) => boolean
version
version: string
if options have position it will return [string, display_position]