PureScript wrapper for Node.js
PureScript binary wrapper that makes it seamlessly available via npm
Use npm after making sure your development environment satisfies the requirements.
npm install purescript
const {execFile} = require('child_process');
const purs = require('purescript');
// purs => '/path/to/proj/node_modules/purescript/vendor/purs'
execFile(purs, ['compile', 'input.purs', '--output', 'output.purs'], err => {
if (err) {
throw err;
}
console.log('Compiled.');
});
Type: String
The path to the purs
binary.
You can use it via CLI by installing it globally.
npm install -g purescript
purs --help
Copyright (c) 2015 - 2017 Shinnosuke Watanabe
Licensed under the MIT License.