args-list

0.3.3 • Public • Published

Args list

Extract method arguments names into array. Commonly used for dependency injection.

Install

npm install args-list --save
component install scottcorgan/args-list
bower install args-list --save

Usage

 
var argsList = require('args-list');
 
function someMethod (arg1, arg2, arg3) {
  // do something here
}
 
var list = argsList(someMethod); // Outputs ['arg1', 'arg2', 'arg3']
 

Package Sidebar

Install

npm i args-list

Weekly Downloads

165

Version

0.3.3

License

MIT

Last publish

Collaborators

  • scottcorgan