readJson
▸ readJson<T>(tree, path, options?): T
Reads a json file, removes all comments and parses JSON.
Type parameters
Section titled “Type parameters”| Name | Type |
|---|---|
T | extends object = any |
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
tree | Tree | file system tree |
path | string | file path |
options? | JsonParseOptions | Optional JSON Parse Options |
Returns
Section titled “Returns”T