0.0.2 • Published 9 years ago

js-args-names v0.0.2

Weekly downloads
8
License
MIT
Repository
github
Last release
9 years ago

Function Arguments Names

Build Status Coverage Status npm version Code Climate npm

Get the names of a function arguments (based on AngularJS annotate).

Installation

$ npm install --save js-args-names

Usage

var argsNames = require('js-args-names');

argsNames(function(name, value, key) {}); // ['name', 'value', 'key']

ToDO

  • DefaultValues: support to get ES6 default values
  • docs annotations: use of javascript comments to define arguments metadata like "function(/ @param / name)".

License

MIT