Spaces:
Configuration error
Configuration error
Download node_modules/@babel/parser/bin/babel-parser.js from AIforAll-HH/IPTV: direct link, hf CLI and curl.
- Browser
- Download file 363 Bytes
-
https://huggingface.co/spaces/AIforAll-HH/IPTV/resolve/main/node_modules/%40babel/parser/bin/babel-parser.js
- Command line
-
hf download hf://spaces/AIforAll-HH/IPTV/node_modules/@babel/parser/bin/babel-parser.js
-
curl -L -o babel-parser.js https://huggingface.co/spaces/AIforAll-HH/IPTV/resolve/main/node_modules/%40babel/parser/bin/babel-parser.js
363 Bytes
| /* eslint-disable no-var, unicorn/prefer-node-protocol */ | |
| var parser = require(".."); | |
| var fs = require("fs"); | |
| var filename = process.argv[2]; | |
| if (!filename) { | |
| console.error("no filename specified"); | |
| } else { | |
| var file = fs.readFileSync(filename, "utf8"); | |
| var ast = parser.parse(file); | |
| console.log(JSON.stringify(ast, null, " ")); | |
| } | |