acorn-node

WebJar for acorn-node

License

License

GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

acorn-node
Last Version

Last Version

1.8.2
Release Date

Release Date

Type

Type

jar
Description

Description

acorn-node
WebJar for acorn-node
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/browserify/acorn-node

Download acorn-node

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/acorn-node/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>acorn-node</artifactId>
    <version>1.8.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/acorn-node/
implementation 'org.webjars.npm:acorn-node:1.8.2'
// https://jarcasting.com/artifacts/org.webjars.npm/acorn-node/
implementation ("org.webjars.npm:acorn-node:1.8.2")
'org.webjars.npm:acorn-node:jar:1.8.2'
<dependency org="org.webjars.npm" name="acorn-node" rev="1.8.2">
  <artifact name="acorn-node" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='acorn-node', version='1.8.2')
)
libraryDependencies += "org.webjars.npm" % "acorn-node" % "1.8.2"
[org.webjars.npm/acorn-node "1.8.2"]

Dependencies

compile (3)

Group / Artifact Type Version
org.webjars.npm : acorn jar [7.0.0,8)
org.webjars.npm : acorn-walk jar [7.0.0,8)
org.webjars.npm : xtend jar [4.0.2,5)

Project Modules

There are no modules declared in this project.

acorn-node

Acorn preloaded with plugins for syntax parity with recent Node versions.

It also includes versions of the plugins compiled with Bublé, so they can be run on old Node versions (0.6 and up).

npm travis standard

Install

npm install acorn-node

Usage

var acorn = require('acorn-node')

The API is the same as acorn, but the following syntax features are enabled by default:

  • Numeric separators syntax 10_000
  • Public and private class instance fields
  • Public and private class static fields

And the following options have different defaults from acorn, to match Node modules:

  • ecmaVersion: 2020
  • allowHashBang: true
  • allowReturnOutsideFunction: true
var walk = require('acorn-node/walk')

The Acorn syntax tree walker. Comes preconfigured for the syntax plugins if necessary. See the acorn documentation for details.

License

The files in the repo root and the ./test folder are licensed as Apache-2.0.

The files in lib/ are generated from other packages:

org.webjars.npm

Versions

Version
1.8.2
1.7.0
1.6.2
1.5.2
1.3.0