retrieve-arguments

1.0.1 • Public • Published

retrieve-arguments

Build Status

Retrieves the argumentnames of a function

Installation

npm install retrieve-arguments

Usage

var retrieveArguments = require('retrieve-arguments');
 
retrieveArguments(function(element, index, array) {/*...*/}); // => ['element', 'index', 'array']
retrieveArguments(function() {/*...*/}); // => []
retrieveArguments(function ( test ){/*...*/}); // => ['test']

CLI

$ retrieve-arguments node_modules/minimist
$ retrieve-arguments ./index.js
$ retrieve-arguments node_modules/minimist ./index.js

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    2,496
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    2,496
  • 1.0.0
    1

Package Sidebar

Install

npm i retrieve-arguments

Weekly Downloads

2,497

Version

1.0.1

License

MIT

Last publish

Collaborators

  • schtoeffel