# es-arguments

> Get the argument names of any es method

Latest version **1.0.2** (published 2017-10-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install es-arguments
pnpm add es-arguments
yarn add es-arguments
bun add es-arguments
```

## 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.0.2 |
| Published | 2017-10-16 |
| First published | 2017-10-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 15 |
| Author | Ryan P. Hansen |
| Maintainers | rphansen91 |
| Keywords | es6, Reflection, arguments, parameters |

## Links

- npm: https://www.npmjs.com/package/es-arguments
- Repository: https://github.com/rphansen91/es-arguments
- Homepage: https://github.com/rphansen91/es-arguments#readme
- Issues: https://github.com/rphansen91/es-arguments/issues
- npm.io page: https://npm.io/package/es-arguments

## Dependencies (1)

- [recast](https://npm.io/package/recast.md) ^0.12.7

## Recent versions

- 1.0.2 (latest) — 2017-10-16
- 1.0.1 — 2017-10-14
- 1.0.0 — 2017-10-14

## README

# ES Arguments

[![Travis Build](https://img.shields.io/travis/rphansen91/es-arguments.svg?style=flat-square)](https://travis-ci.org/rphansen91/es-arguments)
[![Codecov](https://img.shields.io/codecov/c/github/rphansen91/es-arguments.svg?style=flat-square)](https://codecov.io/gh/rphansen91/es-arguments)
[![npm](https://img.shields.io/npm/v/es-arguments.svg?style=flat-square)](https://www.npmjs.com/package/es-arguments)
[![downloads](https://img.shields.io/npm/dw/es-arguments.svg?style=flat-square)](https://www.npmjs.com/package/es-arguments)

## Description

Get the argument names of any es method.

## Usage

`npm install es-arguments`

```js
const getArguments = require('es-arguments')

getArguments(function (arg1, arg2) {}) // ['arg1', 'arg2']
getArguments(function (arg1=1, arg2=2) {}) // ['arg1', 'arg2']
getArguments(function ({ arg1, arg2 }) {}) // ['{ arg1, arg2 }']
getArguments(function (args = { arg1, arg2 }) {}) // ['args']
getArguments((arg1, arg2) => {}) // ['arg1', 'arg2']
```

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