Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

esprima

Package Overview
Dependencies
0
Maintainers
1
Versions
46
Issues
File Explorer

Advanced tools

esprima

ECMAScript parsing infrastructure for multipurpose analysis

    4.0.1latest

Version published
Maintainers
1
Weekly downloads
36,628,211
decreased by-0.26%

Weekly downloads

Readme

Source

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.

Keywords

FAQs

What is esprima?

ECMAScript parsing infrastructure for multipurpose analysis

Is esprima popular?

The npm package esprima receives a total of 31,794,702 weekly downloads. As such, esprima popularity was classified as popular.

Is esprima well maintained?

We found that esprima demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 13 Jul 2018

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc