@basha_coder/compiler

1.1.2 • Public • Published

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:

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.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @basha_coder/compiler

    Weekly Downloads

    4

    Version

    1.1.2

    License

    MIT

    Unpacked Size

    5.88 kB

    Total Files

    7

    Last publish

    Collaborators

    • basha_coder