Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

funargs

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

funargs

(Fun)ction arguments for Node.js.

  • 0.0.5
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by250%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 18 May 2013

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc