2.2.0 • Published 9 years ago

ensime-launcher-js v2.2.0

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
9 years ago

Ensime Launcher JS

NPM module that downloads and starts the ENSIME server. ENSIME is a cross editor platform for the scala programming language.

Usage

Install the ensime-launcher-js library

npm install --save ensime-launcher-js

and use it in your code to start the ensime server:

var Launcher = require("./index");
var dotEnsime = "/path/to/your/.ensime"
var esl = new Launcher(
  dotEnsime,
  "0.9.10-SNAPSHOT",  // ensime version
  "/tmp/ensime",      // directory that can be used to install ensime
  "sbt");            // sbt command (must be already installed)

esl.start(function(err, res) {
  if (err) return console.error(err);
  console.log("=================================");
  console.log("Ensime started on port: "+res.http);
});

API

The following functions are available:

  • start(output, callback): Start ensime. Will download ensime (once) if not already installed.

  • ports(callback): Looks for a running ensime and returns the port it runs on.

  • update(output, callback): (Re)download the newest version of ensime.

  • stop(callback): Stop ensime.

  • cleanup(callback): Gets rid of a running ensime process even if it was not started here.

Parameters:

  • output: {out: Stream, err: Stream} => Streams that capture the sysout/syserr of the started process (ensime resp. the installer).
  • callback: function(err, result)

Credits to

2.2.0

9 years ago

2.1.5

9 years ago

2.1.4

9 years ago

2.1.3

9 years ago

2.1.2

9 years ago

2.1.1

9 years ago

2.1.0

9 years ago

2.0.0

9 years ago

1.2.1

10 years ago

1.2.0

10 years ago

1.1.0

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago