# get-params

> Get a list of function's argument variable names

Latest version **0.1.2** (published 2015-05-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install get-params
pnpm add get-params
yarn add get-params
bun add get-params
```

## Health

**Score 23/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2015-05-13 |
| First published | 2015-05-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/get-params) |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Fahad Ibnay Heylaal |
| Maintainers | fahad19 |
| Keywords | functions, function, params, parameters, get, parse, variables, reflect, reflection |

## Links

- npm: https://www.npmjs.com/package/get-params
- Repository: https://github.com/fahad19/get-params
- Issues: https://github.com/fahad19/get-params/issues
- npm.io page: https://npm.io/package/get-params

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 0.1.2 (latest) — 2015-05-13
- 0.1.1 — 2015-05-13
- 0.1.0 — 2015-05-13

## README

# get-params

[![Build Status](https://secure.travis-ci.org/fahad19/get-params.png?branch=master)](http://travis-ci.org/fahad19/get-params)

Get a list of function's argument variable names (parameters).

## Install

```
$ npm install --save get-params
```

## Usage

```js
var getParams = require('get-params');

var myFunction = function (one, two, three) {
	return 'blah';
};

var params = getParams(myFunction);
console.log(params); // ['one', 'two', 'three']
```

### Browser

You can also run it in the browser. Install it with bower:

```
$ bower install --save get-params
```

Include the script in your HTML:

```html
<script src="./bower_components/get-params/index.js"></script>
```

The library will be available in `window.GetParams`:

```js
var params = GetParams(myFunction);
```

# License

MIT © [Fahad Ibnay Heylaal](http://fahad19.com)

---
_Source: https://npm.io/package/get-params · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
