Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including recci with all npm packages installed. Try it out:

var recci = require("recci")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

recci v1.0.1

Nodemon for C++ files. Watches .cpp files for changes and compiles.


Nodemon for C++ files. Watches C++ files in a directory for changes and compiles to object code.

Important Notice

Currently works on Ubuntu 18.04.

Why recci

The library was built to automate the generation of C++ object files when writing .cpp programs. Generating .o files was a problem for me as I would need to run the following lines of code over and over again:

g++ -o output_file_name source_file.cpp

then run ./output_file_name to execute the program.

This library would reduce the need to type and run the g++ command manually.


  1. nodejs must be installed on your laptop.
  2. g++ must be installed on your laptop.


From the terminal (Ctrl + T to invoke) run the following

npm install -g recci or

npm i -g recci


Once installed globally, navigate to the folder containing .cpp files.

On the command line within the folder containing the .cpp files type

recci <filename>.cpp

An object file .o with the same name as the .cpp file will be created.


  1. Check if g++ is installed in host machine before executing script.
  2. Execute .o file provided that a flag is passed to recci.
  3. Create unit tests
  4. Add functionality to watch more than one .cpp files.


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free