package
the acorn javascript parser, preloaded with plugins for syntax parity with recent node versions
npm install acorn-nodeGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
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 install acorn-nodevar acorn = require('acorn-node')The API is the same as acorn, but the following syntax features are enabled by default:
10n10_000import()import.meta propertyexport * as ns from syntaxAnd the following options have different defaults from acorn, to match Node modules:
ecmaVersion: 2019allowHashBang: trueallowReturnOutsideFunction: truevar walk = require('acorn-node/walk')The Acorn syntax tree walker. Comes preconfigured for the syntax plugins if necessary. See the acorn documentation for details.
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:
Estimated unpacked size across 4 packages.
659.0 kB
Includes dependencies.
gkatsev
me@gkatsev.com
maxogden
max@maxogden.com
thlorenz
thlorenz10@gmail.com
terinjokes
terinjokes@gmail.com
jmm
npm-public@jessemccarthy.net
mellowmelon
palmermebane@gmail.com
ashaffer88
darawk@gmail.com
balupton
b@lupton.cc
cwmma
calvin.metcalf@gmail.com
jprichardson
jprichardson@gmail.com
indutny
blackhole@livebox.sh
jryans
jryans@gmail.com
sethvincent
sethvincent@gmail.com
yoshuawuyts
javascript@yosh.is
ungoldman
ungoldman@gmail.com
ahdinosaur
michael.williams@enspiral.com
elnounch
contact@elnounch.net
parshap
parshap+npm@gmail.com
yerkopalma
yerko.palma@usach.cl
forbeslindesay
forbes@lindesay.co.uk
leichtgewicht
martin.heidegger@gmail.com
garann
garann@gmail.com
bret
bcomnes@gmail.com
anandthakker
vestibule@anandthakker.net
mattdesl
dave.des@gmail.com
hughsk
hughskennedy@gmail.com
fpereira1
pereira.filype@gmail.com
goto-bus-stop
renee@kooi.me
bpostlethwaite
post.ben.here@gmail.com
emilbayes
github@tixz.dk
stevemao
maochenyan@gmail.com
pkrumins
peteris.krumins@gmail.com
tehshrike
me@JoshDuff.com
defunctzombie
shtylman@gmail.com
lukechilds
lukechilds123@gmail.com
raynos
raynos2@gmail.com
^4.0.2
4.0.2
^7.0.0
8.3.5