# acorn-stage3

> Support for stage 3 proposals in acorn

Latest version **4.0.0** (published 2020-08-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install acorn-stage3
pnpm add acorn-stage3
yarn add acorn-stage3
bun add acorn-stage3
```

## 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 | 4.0.0 |
| Published | 2020-08-13 |
| First published | 2017-12-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.8.2 |
| Dependencies | 3 |
| Unpacked size | 47.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | adrianheine, marijn, rreverser |

## Links

- npm: https://www.npmjs.com/package/acorn-stage3
- Repository: https://github.com/acornjs/acorn-stage3
- npm.io page: https://npm.io/package/acorn-stage3

## Dependencies (3)

- [acorn-class-fields](https://npm.io/package/acorn-class-fields.md) ^0.3.7
- [acorn-private-methods](https://npm.io/package/acorn-private-methods.md) ^0.3.3
- [acorn-static-class-features](https://npm.io/package/acorn-static-class-features.md) ^0.2.4

## Recent versions

- 4.0.0 (latest) — 2020-08-13
- 3.1.0 — 2020-08-13
- 3.0.0 — 2020-06-11
- 2.1.0 — 2020-05-04
- 2.0.0 — 2019-02-09
- 1.0.0 — 2018-10-23
- 0.7.0 — 2018-10-01
- 0.6.0 — 2018-02-27
- 0.5.0 — 2018-02-03
- 0.4.0 — 2018-01-13
- 0.3.0 — 2017-12-26
- 0.2.0 — 2017-12-20
- 0.1.0 — 2017-12-17

## README

# stage 3 proposal support for Acorn

[![NPM version](https://img.shields.io/npm/v/acorn-stage3.svg)](https://www.npmjs.org/package/acorn-stage3)

This is a plugin for [Acorn](http://marijnhaverbeke.nl/acorn/) - a tiny, fast JavaScript parser, written completely in JavaScript.

It implements support for all missing [ECMAScript stage 3 proposals](https://github.com/tc39/proposals/blob/master/README.md#stage-3). Neither loose mode nor walk are currently supported.

- [Numeric Separators](https://github.com/tc39/proposal-numeric-separator) via [acorn-numeric-separator](https://www.npmjs.org/package/acorn-numeric-separator)
- [Class field declarations](https://github.com/tc39/proposal-class-fields) via [acorn-class-fields](https://www.npmjs.org/package/acorn-class-fields)
- [Private methods and getter/setters for JavaScript classes](https://github.com/tc39/proposal-private-methods) via [acorn-private-methods](https://www.npmjs.org/package/acorn-private-methods)
- [Static class features](https://github.com/tc39/proposal-static-class-features) via [acorn-static-class-features](https://www.npmjs.org/package/acorn-static-class-features)
- [Logical assignments](https://github.com/tc39/proposal-logical-assignment) via [acorn-logical-assignment](https://github.com/acornjs/acorn-logical-assignment)

## Usage

This module provides a plugin that can be used to extend the Acorn `Parser` class:

```javascript
const {Parser} = require('acorn');
const stage3 = require('acorn-stage3');
Parser.extend(stage3).parse('100_000n');
```

## License

This plugin is released under an [MIT License](./LICENSE).

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