
Product
Socket Now Available on Google Cloud Marketplace
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
acorn-class-fields
Advanced tools
This is a plugin for Acorn - a tiny, fast JavaScript parser, written completely in JavaScript.
It implements support for class fields as defined in the stage 3 proposal Class field declarations for JavaScript. The emitted AST follows the ESTree experimental Class Features design.
This module provides a plugin that can be used to extend the Acorn Parser
class:
const {Parser} = require('acorn');
const classFields = require('acorn-class-fields');
Parser.extend(classFields).parse('class X { x = 0 }');
This plugin is released under an MIT License.
1.0.0 (2021-02-08)
FAQs
Support for class fields in acorn
The npm package acorn-class-fields receives a total of 182,496 weekly downloads. As such, acorn-class-fields popularity was classified as popular.
We found that acorn-class-fields demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.
Research
Security News
Research uncovers Black Basta's plans to exploit package registries for ransomware delivery alongside evidence of similar attacks already targeting open source ecosystems.