PhantomJS version manager, heavily inspired by rbenv
Shell
Clone or download
Permalink
Failed to load latest commit information.
bin
libexec
.gitignore
LICENSE
README.md

README.md

phantomenv

rbenv, but for PhantomJS.

Installation

To install the latest stable release:

git clone -b v0.0.10 https://github.com/boxen/phantomenv.git ~/.phantomenv

Then add the following to your shell config at the end:

export PATH="$HOME/.phantomenv/bin:$PATH"
eval "$(phantomenv init -)"

Usage

» phantomenv help
Usage: phantomenv <command> [<args>]

Some useful phantomenv commands are:
   exec        Execute a command from a particular PhantomJS version.
   shell       Set PHANTOMENV_VERSION for the lifetime of a shell.
   local       Persist the preferred PhantomJS version in the cwd.
   global      Persist the preferred PhantomJS default version.
   install     Install a version of PhantomJS.
   uninstall   Uninstall a version of PhantomJS.
   version     Show the current PhantomJS version.
   versions    Display all versions of PhantomJS installed in `${PHANTOMENV_ROOT}/versions/*'.
   rehash      Rehash phantomenv shims (run this after installing executables)

See `phantomenv help <command>' for information on a specific command.

Credits

This library was heavily, heavily, heavily inspired by @sstephenson's rbenv and ruby-build projects. A few ideas were also taken from nvm.

A number of patterns and utilities are borrowed from that project, and it is my hope that phantomenv provides the same simplicity, elegance, and usability that I've come to love in rbenv and ruby-build for PhantomJS users.