what'snew in node.utils:
data structure: set
method: add, remove, keys, union, has
在 2013年5月7日星期二UTC+8下午2时48分17秒,Simeon Chaos写道:
>
> I have some little unitlities for node.js, and the first of them is an
> importer.
> importer.js (the javascript source file), which is generated from
> importer.coffee by coffeescript.
> See https://github.com/chaosim/node-utils for it.
> To use it, just download importer.js to your project folder.
>
> below is the examples to use it:
>
> I = require("importer")
>
> I.use("underscore: isString, isArray")
> I.at("underscore.first, underscore.last")
> I.all("underscore and_other_module_path")
>
> underscore = require("underscore")
>
> I.with_(underscore, " isString some", function() {
> test.ok(isString(''));
> test.ok(some([3, 2], function(x) {
> return x > 1;
> }));
> test.throws(function() {
> return first([3, 2]);
> });
> return test.done();
> });
>
> I.with_(underscore, function() {
> test.ok(isString(''));
> test.ok(some([3, 2], function(x) {
> return x > 1;
> }));
> return test.equal(first([3, 2]), 3);
> });
>
--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.