readJSON
Reads and parses a JSON file.
- import the method
import { readJSON } from "nodelpers";
- params
path: string;
- usage
let path = "/path/to/your/file.json";
readJSON(path); // content of your json file
Reads and parses a JSON file.
import { readJSON } from "nodelpers";
path: string;
let path = "/path/to/your/file.json";
readJSON(path); // content of your json file