1.0.1 • Published 5 years ago
jdoodlecoderunner v1.0.1
jdoodleCodeRunner
Run programs using jdoodle compiler
Installation
# using npm
npm install jdoodlecoderunner
# using yarn
yarn add jdoodlecoderunnerUsage
# 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)