1.0.1 • Published 11 months ago

cpp-nodejs-backend v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

C++ Nodejs Compiler

The C++ Nodejs Compiler is a npm package that let's user to accept code and format (language) as an input and store it along with returning the result. Along with C++ there will be support for more languages in the future.

Usage

const { generateFile, executeCpp } = require("./index");

const runTest = async () => {
  try {
    const filePath = await generateFile("cpp", `#include <iostream>
int main() { std::cout << "Hello, World!"; return 0; }`);

    const output = await executeCpp(filePath);
    console.log("Output:", output);
  } catch (err) {
    console.error("Error during execution:", JSON.stringify(err, null, 2));
  }
};

runTest();

About

Hi, I am Anubhav Ghosh passionate C++ and MERN Stack developer. Leetcode/Anubhav_03 Linkedin/anubhav-ghosh11

1.0.1

11 months ago

1.0.0

11 months ago