# estree-is-function

> check if an AST node is a function of some sort

Latest version **1.0.0** (published 2017-12-11) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install estree-is-function
pnpm add estree-is-function
yarn add estree-is-function
bun add estree-is-function
```

## 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.0 |
| Published | 2017-12-11 |
| First published | 2017-12-11 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Renée Kooi |
| Maintainers | goto-bus-stop |
| Keywords | arrow-function, check, detect, estree, function, functiondeclaration, functionexpression |

## Links

- npm: https://www.npmjs.com/package/estree-is-function
- Repository: https://github.com/goto-bus-stop/estree-is-function
- Issues: https://github.com/goto-bus-stop/estree-is-function/issues
- npm.io page: https://npm.io/package/estree-is-function

## Recent versions

- 1.0.0 (latest) — 2017-12-11

## README

# estree-is-function

check if an AST node is a function of some sort.

[![npm][npm-image]][npm-url]
[![travis][travis-image]][travis-url]
[![standard][standard-image]][standard-url]

[npm-image]: https://img.shields.io/npm/v/estree-is-function.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/estree-is-function
[travis-image]: https://img.shields.io/travis/goto-bus-stop/estree-is-function.svg?style=flat-square
[travis-url]: https://travis-ci.org/goto-bus-stop/estree-is-function
[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square
[standard-url]: http://npm.im/standard

## Install

```
npm install estree-is-function
```

## Usage

```js
var isFunction = require('estree-is-function')
isFunction(parse('function a () {}')) // true
isFunction(parse('(function () {})')) // true
isFunction(parse('(() => {})')) // true
isFunction(parse('var x')) // false
```

## License

[Apache-2.0](LICENSE.md)

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