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

Function importJSON

scripts/generators/tsconfig.ts:4–6  ·  view source on GitHub ↗
(path: URL)

Source from the content-addressed store, hash-verified

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

Callers 1

getTsPkgsFunction · 0.85

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected