Skip to content

Installation

Install Node.js from one of the following:

  • Node.js v20 — specific v20 release
  • Node.js LTS — latest LTS release
  • nvm (recommended) — Node Version Manager (macOS / Linux)
  • nvm-windows (recommended) — Node Version Manager (Windows)

Latest version: ... View on npm

Terminal window
npm install -g purus
Terminal window
purus version

Create a file main.purus:

const message be ///Hello, World///
console.log[message]

Compile and run:

Terminal window
purus build main.purus
node main.js

Or run directly without generating files:

Terminal window
purus run main.purus

Use purus new to set up a project with configuration, scripts, and dependencies:

Terminal window
purus new my-project
cd my-project
npm run build
ExtensionOutputUse case
.purus.jsStandard JavaScript
.cpurus.cjsCommonJS module
.mpurus.mjsES Module