Skip to content

abhirampai/jdoodleCodeRunner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

refer https://github.com/Pai026/coderBot/

About

Run programs using jdoodle compiler npm package

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published