Installation
Just copy files in importer.js, set.js or utils.js to your node.js project and import it with the require function. See included files for an example.
usage
copy this file to your project and then:
// javascript I = I IIIall"underscore and_other_module_path" underscore = I; I; I // SEE test/test_importer.js for more information**update**: 2013-5-27huh in coffescript all of these stuff become UNNECESSARYbecause the destructive assign syntax in coffeescript ```coffeescript# coffeescript {a, b, c} = require "path/to/module" I = require("impporter") I.use "underscore: isString, isArray" I.at "underscore:first, underscore:last" I.all "underscore and_other_module_path" I.require_multiple "path/to/module1 path/to/module2" underscore = require "underscore" I.with_ underscore, " isString some", -> test.ok(isString('')) test.ok some([3,2], (x) -> x>1) test.throws -> first [3,2] I.with_ underscore, -> test.ok(isString('')) test.ok some([3,2], (x) -> x>1) test.equal (first [3,2]), 3 I.set_global obj, names # SEE test/test_importer.coffee for more information
Bugs
Please report bugs to https://github.com/chaosim/node-utils/issues