A Node.js interface to the PureScript compiler via Spago.
Set up:
mkdir example-project
cd example-project
npm init
spago init
npm install node-purescript-compiler
node
Compiling PureScript:
const ps = require('node-purescript-compiler');
const js = ps.compile();
console.log(js);