Skip to content

Installation

Terminal window
npm install -g purus
Terminal window
purus version

Create a file hello.purus:

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

Compile and run:

Terminal window
purus build hello.purus
node hello.js

Or run directly without generating files:

Terminal window
purus run hello.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