Skip to main content

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