MCPcopy Create free account
hub / github.com/babel/babel / importJSON

Function importJSON

scripts/generators/tsconfig.js:5–7  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

3import archivedSyntaxPkgs from "./archived-syntax-pkgs.json" with { type: "json" };
4
5function importJSON(path) {
6 return JSON.parse(fs.readFileSync(path, "utf8"));
7}
8
9function maybeWriteFile(url, contents) {
10 try {

Callers 1

getTsPkgsFunction · 0.85

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected