Base class for output formatters. Extend this class to create custom output formatters.
new
BaseFormatter(options?: FormatterOptions)
Creates a new formatter
protected
readonly
options: FormatterOptions
Formatter options
protected
extractHostname(rule: string): string | null
Extracts hostname from an adblock rule
abstract
format(rules: string[]): FormatterResult
Formats rules to the target format
protected
generateHeader(commentPrefix: string): string[]
Generates a header comment