Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/abhirampai/jdoodlecoderunner
- Owner: abhirampai
- Created: 2021-04-12T03:45:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-29T06:20:17.000Z (over 2 years ago)
- Last Synced: 2023-03-02T14:08:31.001Z (almost 2 years ago)
- Topics: jdoodle, npm-package
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/jdoodlecoderunner
- Size: 8.79 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/