NODE-FUNARGS
ction arguments for Node.js.
Installation
$ npm install funargs
Usage
var fun = require('funargs'); // A function... function funnier_args() { var args = fun(arguments); // =D // Return some fun! return [ Array.isArray(args), args, args.booleans(), args.strings(), args.numbers(), args.objects(), args.arrays(), args.functions() ]; } // ...and a call. funnier_args("Why", null, "must", ["arguments", "be"], 1, {hell: "of"}, "a...", function() { return "pain"; }, true);
Test
Suite:
$ make test
Examples:
$ make example
References
- Subclass.js by xk
License
Released under the MIT license.
Copyright © Jonas Grimfelt