# babel-identifiers

> Classify Babel identifiers

Latest version **2.0.1** (published 2020-04-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-identifiers
pnpm add babel-identifiers
yarn add babel-identifiers
bun add babel-identifiers
```

## 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 | 2.0.1 |
| Published | 2020-04-16 |
| First published | 2017-06-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | James Kyle |
| Maintainers | thejameskyle |

## Links

- npm: https://www.npmjs.com/package/babel-identifiers
- Repository: https://github.com/babel-utils/babel-identifiers
- Homepage: https://github.com/babel-utils/babel-identifiers#readme
- Issues: https://github.com/babel-utils/babel-identifiers/issues
- npm.io page: https://npm.io/package/babel-identifiers

## Dependencies (1)

- [babel-type-scopes](https://npm.io/package/babel-type-scopes.md) ^1.0.0

## Recent versions

- 2.0.1 (latest) — 2020-04-16
- 2.0.0 — 2018-02-28
- 1.1.2 — 2018-01-19
- 1.1.1 — 2017-08-31
- 1.1.0 — 2017-08-30
- 1.0.0 — 2017-06-06

## README

# babel-identifiers

> Classify Babel identifiers

### Installation

```sh
yarn add babel-identifiers
```

### Usage

Identifier nodes fall into one of three kinds:

1. "binding" - `let binding = ...`
2. "reference" - `reference;`
3. "static" - `a.static`

And into one of four grammars:

1. "javascript" - `let javascript = ...`
1. "jsx" - `<jsx/>`
2. "flow" - `({}: flow)`
3. "typescript" - `enum typescript {}`

```js
import {getIdentifierKind, getIdentifierGrammar} from 'babel-identifiers';

isIdentifierLike(path); // true | false
getIdentifierKind(path); // "binding" | "reference" | "static"
getIdentifierGrammar(path); // "javascript" | "flow" | "typescript"
```

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