Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ethul/psc-release
Install PureScript binary releases
https://github.com/ethul/psc-release
Last synced: about 2 months ago
JSON representation
Install PureScript binary releases
- Host: GitHub
- URL: https://github.com/ethul/psc-release
- Owner: ethul
- License: mit
- Created: 2014-12-13T06:41:22.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-13T19:13:38.000Z (about 10 years ago)
- Last Synced: 2024-09-24T21:52:43.412Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 199 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# psc-release
> Install PureScript binary releases.
## Install
```sh
$ npm install psc-release
```## Usage
```js
var pscRelease = require('psc-release');pscRelease({}, function(e){
if (e) console.log(e);
else console.log('Latest release installed.');
});
```## API
### pscRelease(options, callback)
Options may contain values specified below. The callback will be passed
an error when the install fails. No other value is provided to the
callback. The `pscRelease` function call returns no value.## Options
### tag
Type: `String`
Default: `null`Optional tag of the purescript release to install. The latest release of
PureScript is installed when the value is empty.### github
Type: `Object`
Default: `{owner: 'purescript', repo: 'purescript'}`Github owner and repository where purescript releases are uploaded to.
### os
Type: `Object`
Default: `{darwin: 'macos', linux: 'linux64'}`Mapping of supported OS platform to Github asset filename.
### platform
Type: `String`
Default `require('os').platform()`OS platform used to look up the asset filename from the `os` option.
### bin
Type: `String`
Default: `node_modules/.bin`Destination directory for purescript binaries.
### del
Type: `Array`
Default: `['psc', 'psc-docs', 'psc-make', 'psci']`Filenames of binaries to cleanup on failed install. The `bin` option is appended to the filename.
### temp
Type: `String`
Default: `psc-release`Temporary directory name used to store downloaded assets.
### enc
Type: `String`
Default: `utf-8`File encoding used during shasum check.