Skip to content

Instantly share code, notes, and snippets.

@dilijev
Last active May 31, 2017 01:04
Show Gist options
  • Save dilijev/d8f2fd58551360409b2ba3f50af144fd to your computer and use it in GitHub Desktop.
Save dilijev/d8f2fd58551360409b2ba3f50af144fd to your computer and use it in GitHub Desktop.
Easily set up eshost-cli with public binaries of various JS hosts

This Gist contains sources and instructions for setting up eshost-cli without needing to build anything. (However, some information about where to get sources and how to build is included, if you are so inclined.)

  • npm install -g eshost-cli
  • Run as eshost

(See also eshost)

Get JS Host Binaries

TODO add instructions for non-Windows.

eshost configured with only pre-built binaries

Using the above sources (without building anything) I was able to set up eshost with (reasonably recent) coverage for SpiderMonkey, V8 (via node), and ChakraCore. (I included a few variants of variously recent ChakraCore.)

┌────────────┬─────────┬───────────────────────────────────────────────────────────────────────┬──────┐
│ name       │ type    │ path                                                                  │ args │
├────────────┼─────────┼───────────────────────────────────────────────────────────────────────┼──────┤
│ sm         │ jsshell │ E:\dd\eshost-bin\sm\js.exe                                            │      │
├────────────┼─────────┼───────────────────────────────────────────────────────────────────────┼──────┤
│ node       │ node    │ C:\Users\dilijev\AppData\Local\nvs\node\8.0.0\x64\node.exe            │      │
├────────────┼─────────┼───────────────────────────────────────────────────────────────────────┼──────┤
│ node-ch    │ node    │ C:\Users\dilijev\AppData\Local\nvs\chakracore\8.0.0-pre3\x64\node.exe │      │
├────────────┼─────────┼───────────────────────────────────────────────────────────────────────┼──────┤
│ ch-1.2.3   │ ch      │ E:\dd\eshost-bin\ch-1.2.3\ch.exe                                      │      │
├────────────┼─────────┼───────────────────────────────────────────────────────────────────────┼──────┤
│ ch-1.3.2   │ ch      │ E:\dd\eshost-bin\ch-1.3.2\ch.exe                                      │      │
├────────────┼─────────┼───────────────────────────────────────────────────────────────────────┼──────┤
│ ch-1.4.4   │ ch      │ E:\dd\eshost-bin\ch-1.4.4\ch.exe                                      │      │
├────────────┼─────────┼───────────────────────────────────────────────────────────────────────┼──────┤
│ ch-1.5.0   │ ch      │ E:\dd\eshost-bin\ch-1.5.0\ch.exe                                      │      │
└────────────┴─────────┴───────────────────────────────────────────────────────────────────────┴──────┘
> es -ts -e "2"
┌────────────┬───┐
│ sm         │ 2 │
│ node       │   │
│ node-ch    │   │
│ ch-1.2.3   │   │
│ ch-1.3.2   │   │
│ ch-1.4.4   │   │
│ ch-1.5.0   │   │
└────────────┴───┘
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment