# esnext-syntax-check

> A tool for checking esnext syntax

Latest version **1.0.1** (published 2022-03-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install esnext-syntax-check
pnpm add esnext-syntax-check
yarn add esnext-syntax-check
bun add esnext-syntax-check
```

## 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.1 |
| Published | 2022-03-06 |
| First published | 2022-03-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 9.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | cadleo |
| Maintainers | stepped |

## Links

- npm: https://www.npmjs.com/package/esnext-syntax-check
- Repository: https://github.com/cadleo/esnext-syntax-check
- Homepage: https://github.com/cadleo/esnext-syntax-check#readme
- Issues: https://github.com/cadleo/esnext-syntax-check/issues
- npm.io page: https://npm.io/package/esnext-syntax-check

## Dependencies (3)

- [@babel/types](https://npm.io/package/@babel/types.md) ^7.17.0
- [@babel/parser](https://npm.io/package/@babel/parser.md) ^7.17.3
- [@babel/traverse](https://npm.io/package/@babel/traverse.md) ^7.17.3

## Recent versions

- 1.0.1 (latest) — 2022-03-06
- 1.0.0 — 2022-03-06

## README

# esnext-syntax-check
A tool for checking esnext syntax

```bash
$ npm install -S esnext-syntax-check
```

## Usage

```js
const { checkEsnextSyntax } = require('esnext-syntax-check');
const source = 'function* gen(){}';

const result = checkEsnextSyntax(source); 
// => { 'generator function': 1 }

// with custom visitors, the visitors should return a string describing the syntax
const result2 = checkEsnextSyntax('export default 123; function* gen(){}', { ExportDefaultDeclaration: (path) => 'export default declaration' });
// => { 'custom: export default declaration': 1, 'export statement': 1, 'generator function': 1 }

```

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