Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
3
import
archivedSyntaxPkgs from
"./archived-syntax-pkgs.json"
with {
type
:
"json"
};
4
5
function
importJSON(path) {
6
return
JSON.parse(fs.readFileSync(path,
"utf8"
));
7
}
8
9
function
maybeWriteFile(url, contents) {
10
try {
Callers
1
getTsPkgs
Function · 0.85
Calls
1
parse
Method · 0.45
Tested by
no test coverage detected