Skip to main content

JSONC

Helper functions for working with JSONC.

Functions

getJSONC()

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

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

Record<string, unknown>

Defined in

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