Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including globalify with all npm packages installed. Try it out:

var globalify = require("globalify")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

globalify v1.1.0

## Wat

Globalify

Wat

Globalify will install from npm then browserify a module.

Why would anyone want this!?

For easy usage in testing sites like jsperf.com, or jsbin etc etc..

Usage

cmdline:

npm -i globalify -g

globalify gedi -o gedi-0.10.0.js

API:

var globalify = require('globalify');

globalify({
        module: 'gedi',
        version: '0.10.0', // OPTIONAL, Will default to x.x.x
        globalVariable: 'gedi' or function(moduleName, version){ ... }, // OPTIONAL, Will default to the module name camelCased.
        installDirectory: 'someDir' // OPTIONAL, Will default to globalify_modules
    },
    function(error){
        // Something went a bit shit.
    }
).pipe(myAwesomeWriteStream);
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free