Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 1.35 KB

README.md

File metadata and controls

23 lines (19 loc) · 1.35 KB

Interpreter Appveyor StatusBuild StatusCoverage Status

Prerequisites

  • CMake (v3.1.3 or higher)
  • a C++11 compatible compiler
    • Note: gcc 4.8.1 is also supported, even though it does not support the <regex> C++11 feature

Installing the Interpreter as a node module

Please first install all dependencies as listed above. Install the Interpreter using npm install MrModder/Interpreter. You can now use require('InterpreterNan') to use the interpreter.

If you are using electron, you need to add additional configurations to your package.json file:

"cmake-js": {
    "runtime": "electron",
    "runtimeVersion": "electron-runtime-version-here",
    "arch": "whatever-setting-is-appropriate-for-your-application's-windows-build"
  }

This is neccessary because electron might use a different node version than the one you have installed. For more information take a look at cmake-js