readJsonFile
▸ readJsonFile<T>(path, options?): T
Reads a JSON file and returns the object the JSON content represents.
Type parameters
Section titled “Type parameters”| Name | Type |
|---|---|
T | extends object = any |
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
path | string | A path to a file. |
options? | JsonReadOptions | JSON parse options |
Returns
Section titled “Returns”T
Object the JSON content of the file represents