Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/abhirampai/jdoodlecoderunner

Run programs using jdoodle compiler npm package
https://github.com/abhirampai/jdoodlecoderunner

jdoodle npm-package

Last synced: about 2 months ago
JSON representation

Run programs using jdoodle compiler npm package

Awesome Lists containing this project

README

        

# jdoodleCodeRunner

Run programs using jdoodle compiler

## Installation

```js
# using npm
npm install jdoodlecoderunner

# using yarn
yarn add jdoodlecoderunner
```

## Usage

```js
# using require
const codeRunner = require('jdoodlecoderunner');

# using import
import codeRunner from 'jdoodlecoderunner';
```

## Example

### Using promises:

```js
codeRunner.runCode(
fileUrl,
python3,
3,
41,
clientId,
clientSecret
).then((output) => console.log(output));
```

### Using async/await:

```js
const output = await codeRunner.runCode(
fileUrl,
python3,
3,
41,
clientId,
clientSecret
)
console.log(output)
```
refer https://github.com/Pai026/coderBot/