1.0.1 • Published 5 years ago
jdoodlecoderunner
Licence
ISC
Version
1.0.1
Deps
1
Size
2 kB
Vulns
23
Weekly
0
jdoodleCodeRunner
Run programs using jdoodle compiler
Installation
# using npm
npm install jdoodlecoderunner
# using yarn
yarn add jdoodlecoderunner
Usage
# using require
const codeRunner = require('jdoodlecoderunner');
# using import
import codeRunner from 'jdoodlecoderunner';
Example
Using promises:
codeRunner.runCode(
fileUrl,
python3,
3,
41,
clientId,
clientSecret
).then((output) => console.log(output));
Using async/await:
const output = await codeRunner.runCode(
fileUrl,
python3,
3,
41,
clientId,
clientSecret
)
console.log(output)