Skip to main content

parseIRFile

@a16njs/plugin-a16n


@a16njs/plugin-a16n / parseIRFile

Function: parseIRFile()

parseIRFile(filepath, filename, relativePath): Promise<ParseIRFileResult>

Defined in: parse.ts:49

Parse an IR file from disk.

Parameters

filepath

string

Absolute path to the file

filename

string

Filename (used to derive name)

relativePath

string

Path relative to .a16n/ directory (e.g., ".a16n/global-prompt/coding-standards.md")

Returns

Promise<ParseIRFileResult>

ParseIRFileResult with either item or error