Spaces:
Runtime error
Runtime error
File size: 236 Bytes
3c890db | 1 2 3 4 5 6 7 8 9 10 11 |
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());
}
|