Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lgvo/js-args-names
function to get name of arguments based on AngularJS annotate function
https://github.com/lgvo/js-args-names
Last synced: about 1 month ago
JSON representation
function to get name of arguments based on AngularJS annotate function
- Host: GitHub
- URL: https://github.com/lgvo/js-args-names
- Owner: lgvo
- License: mit
- Created: 2015-08-13T06:20:53.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-02T05:12:22.000Z (over 9 years ago)
- Last Synced: 2024-10-14T04:22:20.418Z (3 months ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Function Arguments Names
[![Build Status](https://travis-ci.org/lgvo/js-args-names.svg?branch=master)](https://travis-ci.org/lgvo/js-args-names)
[![Coverage Status](https://coveralls.io/repos/lgvo/js-args-names/badge.svg?branch=master&service=github)](https://coveralls.io/github/lgvo/js-args-names?branch=master)
[![npm version](https://badge.fury.io/js/js-args-names.svg)](http://badge.fury.io/js/js-args-names)
[![Code Climate](https://codeclimate.com/github/lgvo/js-args-names/badges/gpa.svg)](https://codeclimate.com/github/lgvo/js-args-names)
[![npm](https://img.shields.io/npm/dm/js-args-names.svg)](https://www.npmjs.com/package/js-args-names)Get the names of a function arguments (based on AngularJS annotate).
## Installation
```sh
$ npm install --save js-args-names
```## Usage
```javascript
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](LICENSE)