Skip to content

function to get name of arguments based on AngularJS annotate function

License

Notifications You must be signed in to change notification settings

lgvo/js-args-names

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

function to get name of arguments based on AngularJS annotate function

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published