Spaces:
Runtime error
Runtime error
Download get_syntax_error.js from Brozy123/LineUp-Bot: direct link, hf CLI and curl.
- Browser
- Download file 236 Bytes
-
https://huggingface.co/spaces/Brozy123/LineUp-Bot/resolve/3c890db32f62e00a335eaf565c410e5df247e7da/get_syntax_error.js
- Command line
-
hf download hf://spaces/Brozy123/LineUp-Bot@3c890db32f62e00a335eaf565c410e5df247e7da/get_syntax_error.js
-
curl -L -o get_syntax_error.js https://huggingface.co/spaces/Brozy123/LineUp-Bot/resolve/3c890db32f62e00a335eaf565c410e5df247e7da/get_syntax_error.js
236 Bytes
| const fs = require('fs'); | |
| const { execSync } = require('child_process'); | |
| try { | |
| execSync('node -c index.js', { stdio: 'pipe' }); | |
| console.log("No syntax errors found."); | |
| } catch (err) { | |
| console.log(err.stderr.toString()); | |
| } | |