Read file as string in CLI

This commit is contained in:
Vrganj 2021-01-16 13:14:46 +01:00
parent d8b6379b9a
commit f78aa34c10
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ const [languageName, sourceFile, ...args] = process.argv.slice(2);
return;
}
const source = readFileSync(sourceFile);
const source = readFileSync(sourceFile).toString();
const language = languages.find(language => language.name === languageName);