# acorn-static-class-features

> Support for static class features in acorn

Latest version **1.0.0** (published 2021-02-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install acorn-static-class-features
pnpm add acorn-static-class-features
yarn add acorn-static-class-features
bun add acorn-static-class-features
```

## 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 | 2021-02-08 |
| First published | 2018-09-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.8.2 |
| Dependencies | 1 |
| Unpacked size | 28.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Maintainers | marijn, adrianheine, rreverser |

## Links

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

## Dependencies (1)

- [acorn-private-class-elements](https://npm.io/package/acorn-private-class-elements.md) ^1.0.0

## Recent versions

- 1.0.0 (latest) — 2021-02-08
- 0.2.4 — 2020-08-13
- 0.2.3 — 2020-06-11
- 0.2.2 — 2020-05-21
- 0.2.1 — 2020-04-25
- 0.2.0 — 2019-02-09
- 0.1.1 — 2018-11-06
- 0.1.0 — 2018-09-14

## README

# Static class features support for Acorn

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

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

It implements support for static class features as defined in the stage 3 proposal [Static class features](https://github.com/tc39/proposal-static-class-features). The emitted AST follows the [ESTree experimental Class Features design](https://github.com/estree/estree/blob/master/experimental/class-features.md).

## Usage

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

```javascript
const {Parser} = require('acorn');
const staticClassFeatures = require('acorn-static-class-features');
Parser.extend(staticClassFeatures).parse('class X { static x = 0 }');
```

## License

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

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