4.0.1 • Published 3 years ago

esprima v4.0.1

Weekly downloads
28,913,441
License
BSD-2-Clause
Repository
github
Last release
3 years ago

NPM version npm download Build Status Coverage Status

Esprima (esprima.org, BSD license) is a high performance, standard-compliant ECMAScript parser written in ECMAScript (also popularly known as JavaScript). Esprima is created and maintained by Ariya Hidayat, with the help of many contributors.

Features

API

Esprima can be used to perform lexical analysis (tokenization) or syntactic analysis (parsing) of a JavaScript program.

A simple example on Node.js REPL:

> var esprima = require('esprima');
> var program = 'const answer = 42';

> esprima.tokenize(program);
[ { type: 'Keyword', value: 'const' },
  { type: 'Identifier', value: 'answer' },
  { type: 'Punctuator', value: '=' },
  { type: 'Numeric', value: '42' } ]
  
> esprima.parseScript(program);
{ type: 'Program',
  body:
   [ { type: 'VariableDeclaration',
       declarations: [Object],
       kind: 'const' } ],
  sourceType: 'script' }

For more information, please read the complete documentation.

escodegenrecastdegeneratorredeyedvuedragdropuploadimagesreact-native-bluetooth2killi8n-react-native-fast-imagecruks-lib-functionpipihomeubijsufs-obfuscator-loaderrn-send-smspbnj-langspecify-importsbabel-specify-imports@zhangzisu/fuscator-loader@icanpm/api-master@arisageha/react-lazyload@arisageha/react-lazyload-fix@oneplanetcrowd/developerswhite-paper@automatique/generator-js@cashremit/cr-streamline-iconsarchaize-jsdynos.viewer.component@almeidaa/mssimple-axiosv-propertyreact-native-template-rfbaseliluartemoire-preprocesscloud-archive-s3my-tokenizerairscanairscan-examplebb-chat@aravindh.n/generator-avi-angular-helperreact-native-esc-pos-sahaabjsconfeu-talkxkeep-loadertestglobals@borisovart/atol-kkt-module@frxf/frxf@alu0101244488/jsconfeu-talklighthouse-plugin-publisher-ads-alphaignoredeneme323112@texttree/demo-bsa-reference-rcl@fundefund/funde_ck@ntt_app/react-native-custom-notification@ily1437/js-docreact-native-custom-text-hwjamescirri_appbcjstocjsaudio-worker-compilerauto-translatorauto2dotpolvo-jspolvo@rbc-public/react-selectable-fastavg-engineavg.engineautowireautowired-jspotionsellerqmbbhscriptbig-bertha@shimaore/jisonasm.jsassembly-sourceastifyastiiastjsplugkitast-equalast-equal-2ast-function-toolsast-evalast-sourceast-transformast2asteeaster-parse-esnextaster-parse-jsaster-uglifyaster-umdastw-optsasync_goto_syncpoetrifyasyncblock-generatorspolycastastronaut@ray4105/js-yamlpolymer2-migratorpolymer-modulizer@rduk/expressionattributionatm3-optimizer-ng-annotateatieshatropa-jsformatter
4.0.1

3 years ago

4.0.0

4 years ago

3.1.3

5 years ago

3.1.2

5 years ago

3.1.1

5 years ago

3.1.0

5 years ago

3.0.0

5 years ago

2.7.3

5 years ago

2.7.2

6 years ago

2.7.1

6 years ago

2.7.0

6 years ago

2.6.0

6 years ago

2.5.0

6 years ago

2.4.1

6 years ago

2.4.0

6 years ago

2.3.0

6 years ago

2.2.0

6 years ago

2.1.0

7 years ago

1.2.5

7 years ago

2.0.0

7 years ago

1.2.4

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.9.9

10 years ago

0.9.8

10 years ago

0.9.7

10 years ago

0.9.6

10 years ago

0.9.5

10 years ago

0.9.4

10 years ago

0.9.3

10 years ago

0.9.2

10 years ago

0.9.1

10 years ago

0.9.0

10 years ago

0.8.2

10 years ago

0.8.1

10 years ago

0.8.0

10 years ago

0.7.0

10 years ago