Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Phantomify lets you headlessly browserify
JavaScript
tag: v0.1.0

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
test
.travis.yml
History.md
License.md
Readme.md
package.json
phantom-bootstrap.js
phantomify.js
process.js

Readme.md

phantomify

Build Status

Phantomify lets you headlessly browserify!!

Browserify does a great job of letting you concentrate on writing reusable modules that work both on nodejs & browsers instead of spending efforts on bikeshidding module format. PhantomJS on the other hand is headless webkit browser that is well supported by a travis-ci. Phantomify composes this great tools together to let you run node module in a headless browser environment.

Usage

phantomify ./path/to/module.js

Phantomify will make a browserify bundle for the given module path and then will load & execute it in an empty "about:blank" page in a PhantomJS.

Sometimes "about:blank" is just not good enough there for Phantomify can be given second argument for the page URL where code should be executed:

phantomify ./path/to/module.js http://localhost:8080/

Install

npm install -g phantomify
Something went wrong with that request. Please try again.