Spaces:
Runtime error

LineUp-Bot / get_syntax_error.js
Brozy123's picture
Create get_syntax_error.js
3c890db verified
Raw History Blame
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());
}