mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-20 20:16:26 +02:00
Read file as string in CLI
This commit is contained in:
parent
d8b6379b9a
commit
f78aa34c10
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue