funargs

(Fun)ction arguments for Node.js.

npm install funargs
1 downloads in the last day
3 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

  $ npm install funargs

h2. 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);

h2. Test

Suite:

  $ make test

Examples:

  $ make example

h2. References

h2. License

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

npm loves you