PureScript wrapper that makes it available as a local dependency
npm install hyper-purescript

PureScript binary wrapper that makes it seamlessly available via npm
This package makes maximum use of postinstall script, so please make sure that ignore-scripts npm-config is not enabled before installation.
``console`
$ npm config get ignore-scripts
false
``
npm install purescript
Once the command above is executed,
__1.__ First, it checks if a PureScript binary has been already cached, and restores that if available.
__2.__ The second plan: if no cache is available, it downloads a prebuilt binary from the PureScript release page.
__3.__ The last resort: if no prebuilt binary is provided for your platform or the downloaded binary doesn't work correctly, it downloads the PureScript source code and compile it with Stack.
Type: string
An absolute path to the installed PureScript binary, which can be used with child_process functions.
`javascript
const {execFile} = require('child_process');
const purs = require('purescript'); //=> '/Users/you/example/node_modules/purescript/purs.bin'
execFile(purs, ['compile', 'input.purs', '--output', 'output.purs'], () => {
console.log('Compiled.');
});
`
You can use it via CLI by installing it globally.
`
npm install --global purescript
purs --help
``
ISC License © 2017 - 2019 Watanabe Shinnosuke