funargs

(Fun)ction arguments for Node.js.

npm install funargs
8 downloads in the last week
44 downloads in the last month
h1. NODE-FUNARGS "!https://secure.travis-ci.org/grimen/node-funargs.png!":http://travis-ci.org/grimen/node-funargs

_(Fun)ction arguments for Node.js._

h2. Installation

<pre>
  $ npm install funargs
</pre>

h2. Usage

<pre>
  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);
</pre>


h2. Test

*Suite:*

<pre>
  $ make test
</pre>

*Examples:*

<pre>
  $ make example
</pre>


h2. References

* "Subclass.js":https://gist.github.com/xk/1321777 by "xk":https://github.com/xk


h2. License

Released under the MIT license.
Copyright (c) "Jonas Grimfelt":http://github.com/grimen
npm loves you