Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.
/ phantomenv Public archive

PhantomJS version manager, heavily inspired by rbenv

License

Notifications You must be signed in to change notification settings

boxen/phantomenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.