npm.io
0.0.6 • Published 7 years agoCLI

nodecpp

Licence
ISC
Version
0.0.6
Deps
3
Size
39 kB
Vulns
0
Weekly
0

nodecpp

This wil compile and run main.cpp on a filechange from main.cpp

It will run:

g++ main.cpp -o main
./main

install

npm i . -g

or with npm

npm i nodecpp -g

run

You need to have a file main.cpp in the directory

#include <iostream>

int main() {
    std::cout << "Hallo, nodecpp" << std::endl;
    return 0;
}

than run

nodecpp

if you want to run other files

nodecpp other

Thats it. For now it will not watch other files

Keywords