JSPM

  • Created
  • Published
  • Downloads 5627
  • Score
    100M100P100Q140030F
  • License MIT

PureScript wrapper that makes it seamlessly available as a local dependency

Package Exports

  • purescript

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (purescript) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

PureScript wrapper for Node.js

NPM version Build Status Coverage Status dependencies Status devDependencies Status

PureScript binary wrapper that makes it seamlessly available via npm

Installation

Use npm after making sure your development environment satisfies the requirements.

npm install purescript

Usage

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.');
});

API

require('purescript')

Type: String

The path to the purs binary.

CLI

You can use it via CLI by installing it globally.

npm install -g purescript

purs --help

License

Copyright (c) 2015 - 2017 Shinnosuke Watanabe

Licensed under the MIT License.