Name: acorn-node
Owner: browserify
Description: the acorn javascript parser, preloaded with plugins for syntax parity with recent node versions
Created: 2018-01-09 20:13:01.0
Updated: 2018-03-02 10:42:39.0
Pushed: 2018-02-02 09:35:39.0
Homepage: null
Size: 24
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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).
install acorn-node
acorn = require('acorn-node')
The API is the same as acorn, but the following syntax features are enabled by default:
And the following options have different defaults from acorn, to match Node modules:
ecmaVersion: 9
allowHashBang: true
allowReturnOutsideFunction: true
walk = require('acorn-node/walk')
The Acorn syntax tree walker. Comes preconfigured for the syntax plugins if necessary. See the acorn documentation for details.