https://github.com/anshulrgoyal/code-compiler
It provide api to compile and run other language code like C,CPP,Node,Python.
https://github.com/anshulrgoyal/code-compiler
Last synced: 2 months ago
JSON representation
It provide api to compile and run other language code like C,CPP,Node,Python.
- Host: GitHub
- URL: https://github.com/anshulrgoyal/code-compiler
- Owner: anshulrgoyal
- Created: 2018-04-22T09:11:14.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-25T17:40:16.000Z (over 6 years ago)
- Last Synced: 2025-03-21T02:33:30.378Z (3 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 1
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
CODE COMPILER
This module provide some basic functionality to run code in node of different language for eg:C/C++,Python.
It use open source compiler like GNU GCC
The module requires:
- GCC
- Python
- NodeJS
```javascript
const {runNode,runC,runCPP,runPython}=require('code-compiler')
runNode(code,input,cb(stderr,stdout){
console.log({err:stderr});
console.log({output:stdout});
})
```