Giter Site home page Giter Site logo

node-purescript-bin's Introduction

PureScript wrapper for Node

NPM version Build Status Coverage Status Dependency Status devDependency Status

PureScript binary wrapper that makes it seamlessly available via npm

Installation

Use npm.

npm install purescript

Usage

const {execFile} = require('child_process');
const paths = require('purescript');

// On POSIX
paths.psc; //=> '/path/to/proj/node_modules/purescript/vendor/psc'
paths['psc-bundle']; //=> '/path/to/proj/node_modules/purescript/vendor/psc-bundle'
paths['psc-docs']; //=> '/path/to/proj/node_modules/purescript/vendor/psc-docs'
paths['psc-publish']; //=> '/path/to/proj/node_modules/purescript/vendor/psc-publish'
paths.psci; //=> '/path/to/proj/node_modules/purescript/vendor/psci'

execFile(psc, ['input.purs', '--output', 'output.purs'], err => {
  if (err) {
    throw err;
  }

  console.log('Compiled.');
});

API

require('purescript').psc

Type: String

The path to psc binary

require('purescript')['psc-bundle']

Type: String

The path to psc-bundle binary

require('purescript')['psc-docs']

Type: String

The path to psc-docs binary

require('purescript')['psc-publish']

Type: String

The path to psc-publish binary

require('purescript').psci

Type: String

The path to psci binary

CLI

You can use it via CLI by installing it globally.

npm install -g purescript

psc --help
psc-bundle --help
psc-docs --help
psci --help
psc-publish

License

Copyright (c) 2015 Shinnosuke Watanabe

Licensed under the MIT License.

node-purescript-bin's People

Contributors

garyb avatar seanstrom avatar shinnn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.