# fn-annotate

> Get the argument names of a JavaScript function

Latest version **1.2.0** (published 2017-05-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install fn-annotate
pnpm add fn-annotate
yarn add fn-annotate
bun add fn-annotate
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2017-05-20 |
| First published | 2015-06-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Anthony Foster |
| Maintainers | aantthony |
| Keywords | annotate, arguments, function, reflection, annotation |

## Links

- npm: https://www.npmjs.com/package/fn-annotate
- Repository: https://github.com/aantthony/annotate
- Homepage: https://github.com/aantthony/annotate#readme
- Issues: https://github.com/aantthony/annotate/issues
- npm.io page: https://npm.io/package/fn-annotate

## Recent versions

- 1.2.0 (latest) — 2017-05-20
- 1.1.3 — 2015-11-24
- 1.1.2 — 2015-11-24
- 1.1.1 — 2015-08-08
- 1.1.0 — 2015-08-08
- 1.0.1 — 2015-06-16
- 1.0.0 — 2015-06-16

## README

# fn-annotate

[![NPM Version](https://img.shields.io/npm/v/fn-annotate.svg)](https://www.npmjs.com/package/fn-annotate)
[![Build Status](https://img.shields.io/travis/aantthony/annotate/master.svg)](https://travis-ci.org/aantthony/annotate)
[![NPM Downloads](https://img.shields.io/npm/dm/fn-annotate.svg)](https://www.npmjs.com/package/fn-annotate)
[![License](https://img.shields.io/npm/l/fn-annotate.svg)](https://www.npmjs.com/package/fn-annotate)

Get the argument names of a JavaScript function.

## Install

`npm install --save fn-annotate`

## Usage

```js
var annotate = require('fn-annotate');

function myFunction (user, document, db) {
  // do some stuff.
}

var argumentNames = annotate(myFunction);

// [ 'user', 'document', 'db' ]
console.log(argumentNames);

// [ 'x' ]
console.log(annotate(x => x));

// [ 'param' ]
console.log(annotate(function * (param) {}));
```

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