Socket
Socket
Sign inDemoInstall

funargs

Package Overview
Dependencies
1
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    funargs

(Fun)ction arguments for Node.js.


Version published
Weekly downloads
5
decreased by-87.8%
Maintainers
1
Install size
33.5 kB
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 18 May 2013

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc