js-args-names

0.0.2 • Public • Published

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

Package Sidebar

Install

npm i js-args-names

Weekly Downloads

7

Version

0.0.2

License

MIT

Last publish

Collaborators

  • lgvo