You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
397 B
JavaScript
16 lines
397 B
JavaScript
process.stdin.setEncoding('utf8');
|
|
process.stdin.on('data', async (input) => {
|
|
try {
|
|
const t = eval(input.toString().trim()); // eslint-disable-line no-eval
|
|
if (t instanceof Promise) console.log(await t);
|
|
else console.log(t);
|
|
} catch (e) {
|
|
console.warn(e);
|
|
}
|
|
});
|
|
|
|
require('./loader').load().catch((e) => {
|
|
console.error(e);
|
|
process.exit(1);
|
|
});
|