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
Parameter | Type |
---|---|
filePath | string |
Returns
Record
<string
, unknown
>