Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 7, 2024 via pnpm

espree 9.6.1

An Esprima-compatible JavaScript parser built on Acorn
Package summary
Share
0
issues
3
licenses
2
MIT
1
Apache-2.0
1
BSD-2-Clause
Package created
6 Dec 2014
Version published
14 Jul 2023
Maintainers
3
Total deps
4
Direct deps
3
License
BSD-2-Clause

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
acorn-jsx@5.3.2
acorn@8.11.3

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
1 Packages, Including:
eslint-visitor-keys@3.4.3

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
espree@9.6.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

3
All Dependencies CSV
β“˜ This is a list of espree 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
acorn-jsx5.3.27.46 kBMIT
prod
acorn8.11.3122.89 kBMIT
prod peer
eslint-visitor-keys3.4.37.92 kBApache-2.0
prod

Visualizations

Frequently Asked Questions

What does espree do?

Espree is a JavaScript parser that started as a fork of Esprima v1.2.2 and is built on top of Acorn. It's primary function is to produce output similar to Esprima but with a similar API, making it easy to use in place of Esprima. Espree aims to produce the same Abstract Syntax Tree (AST) structure and tokens as Esprima, with attached comments and additional information on AST nodes.

How do you use espree?

Espree is easy to install and use. To install it, all you need to do is to run the command npm i espree in your terminal. Once installed, you can incorporate Espree into your ESM or CommonJS file. For ESM files, you can use it as follows:

import * as espree from "espree";

const ast = espree.parse(code);

And for Common JS files, the usage would be:

const espree = require("espree");

const ast = espree.parse(code);

Espree's parse and tokenize functions are key to its functionality. The parse function allows you to parse the given code and return an abstract syntax tree. On the other hand, tokenize function can be used to get the tokens of a given code.

Where are the espree docs?

The Espree documentation can be found within the project's README on the GitHub repository located at git+https://github.com/eslint/espree.git. Here you can find comprehensive details about various aspects of Espree such as usage, API, options, differences from Espree 2.x, incompatibilities and frequently asked questions. Additional project-related information about contribution guidelines, security policy and build commands is also provided in the README. For detailed options read-up and specific API usage examples, always referring to this official GitHub documentation is best practice for ongoing engagement with Espree.