https://github.com/abhirampai/jdoodlecoderunner
Run programs using jdoodle compiler npm package
https://github.com/abhirampai/jdoodlecoderunner
jdoodle npm-package
Last synced: 4 months ago
JSON representation
Run programs using jdoodle compiler npm package
- Host: GitHub
- URL: https://github.com/abhirampai/jdoodlecoderunner
- Owner: abhirampai
- Created: 2021-04-12T03:45:34.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-11-13T16:18:22.000Z (over 1 year ago)
- Last Synced: 2024-11-17T12:19:20.010Z (8 months ago)
- Topics: jdoodle, npm-package
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/jdoodlecoderunner
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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/