This is a simple C-style preprocessor that you can use on any type of files. You can use it on plain text files, Java, C, C++, Python, and pretty much anything else. It's currently written in JavaScript and it should be compiled using pkg.
If you wish to use node directly, feel free to do so as well.
View the releases. From version 1.1.0 on, there are binaries for Linux, macOS and Windows. Note that only the Linux binary has been tested by me, so if the other ones do not work please create a new issue and explain what exactly is wrong and the platform you tried to use the binary on, and of course, which binary you used.
sudo npm install -g pkg
pkg -t node8-linux-x86 js/index.js
./index
You should use node 8 for this, however, you can also try older versions.
For more detailed information, read the Usage section of pkg's README.
You can also find all available options simply by executing pkg
without parameters.
Using node is fairly simple:
node js/index.js