@basha_coder/compiler
v1.1.2
Published
Compiles code
Downloads
6
Readme
Compiler
This is an open source compiler that compiles code in the browser. It is licensed under the MIT license. This lib compiles the following languages:
- Python 3
- Web (HTML) If you want to add a language, please follow the Contributing guideline.
How to use?
First install the package
npm i @basha_coder/compiler
Then make a file and import the lib
const = require("@basha_coder/compiler")
Then pass in the code like this:
const code = await compile.runPython(`
print('Hello World!')
`)
console.log(code);
It will out put the following
["Hello World"]
Note: If there is any problem using this you can always open an issue, and one of the contributors will help you
Contributing
If you would like to contribute to this project, please visit the GitHub repository and submit a pull request. The project is also available on npm.