climate-change

Import modules or functions to global namespace


Keywords
import, namespace
License
ISC
Install
npm install climate-change@1.1.4

Documentation

climate-change

Include node libraries in global namespace.

Installation

npm install climate-change --save

Example usage

var climate-change = require('climate-change');
climate-change.pollute(_, ['min', 'max']);
min([1, 2, 3])

climate-change.pollute(library, arrayOfFunctionNames)

Takes a variable pointing to a library and a optional array with strings of function names to include in the global namespace.

climate-change.pollute(_);

Will make all of underscore's functions available in the global namespace.

climate-change.pollute(_, ['map', 'filter']);

Will make just the map and filter functions available in the global namespace.