Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
fs.readFile(path, (error, content) => {
if (error) {
reject(error);
} else {
const rawGrammar = vt.parseRawGrammar(content.toString(), path);
resolve(rawGrammar);
}
});
});