Home > harper.js > BinaryModule

BinaryModule class

A wrapper around the underlying WebAssembly module that contains Harper's core code. Used to construct a Linter, as well as access some miscellaneous other functions.

Signature:

export declare class BinaryModule 

Properties

Property

Modifiers

Type

Description

url

string | URL

Methods

Method

Modifiers

Description

create(url)

static

Load a binary from a specified URL. This is the only recommended way to construct this type.

getDefaultLintConfig()

getDefaultLintConfigAsJSON()

setup()

toTitleCase(text)