开发者社区> 镜像站> NPM> acorn-static-class-features
acorn-static-class-features
Support for static class features in acorn
Last updated 4 months ago by adrianheine .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install acorn-static-class-features 
SYNC missed versions from official npm registry.

Static class features support for Acorn

NPM version

This is a plugin for 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. The emitted AST follows an ESTree proposal.

Usage

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

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.

Current Tags

  • 0.2.4                                ...           latest (4 months ago)

7 Versions

  • 0.2.4                                ...           4 months ago
  • 0.2.3                                ...           6 months ago
  • 0.2.2                                ...           6 months ago
  • 0.2.1                                ...           7 months ago
  • 0.2.0                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Downloads
Today 0
This Week 367
This Month 275
Last Day 112
Last Week 480
Last Month 2,134
Dependencies (1)
Dev Dependencies (6)