Skip to main content

JSONC

Helper functions for working with JSONC.

Functions

getJSONC()

function getJSONC(filePath): Promise<Record<string, unknown>>

Defined in: packages/complete-node/src/functions/jsonc.ts:19

Helper function to parse a file as JSONC.

This expects the file to contain an object (i.e. {}). This will print an error message and exit the program if any errors occur.

Parameters

ParameterType
filePathstring

Returns

Promise<Record<string, unknown>>