args-list

Extract method arguments names into array.

npm install args-list
17 downloads in the last day
125 downloads in the last week
939 downloads in the last month

Args list

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

Install

npm 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']
npm loves you