Gathering detailed insights and metrics for nearley
Gathering detailed insights and metrics for nearley
Gathering detailed insights and metrics for nearley
Gathering detailed insights and metrics for nearley
📜🔜🌲 Simple, fast, powerful parser toolkit for JavaScript.
npm install nearley
96.9
Supply Chain
92.5
Quality
78
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
3,634 Stars
1,085 Commits
231 Forks
45 Watching
3 Branches
50 Contributors
Updated on 26 Nov 2024
Minified
Minified + Gzipped
JavaScript (55.47%)
HTML (33.86%)
Nearley (7.96%)
CSS (2.71%)
Cumulative downloads
Total Downloads
Last day
-10.4%
590,293
Compared to previous day
Last week
2.7%
3,412,522
Compared to previous week
Last month
12.4%
13,741,731
Compared to previous month
Last year
1.3%
136,478,553
Compared to previous year
nearley is a simple, fast and powerful parsing toolkit. It consists of:
nearley is a streaming parser with support for catching errors gracefully and providing all parsings for ambiguous grammars. It is compatible with a variety of lexers (we recommend moo). It comes with tools for creating tests, railroad diagrams and fuzzers from your grammars, and has support for a variety of editors and platforms. It works in both node and the browser.
Unlike most other parser generators, nearley can handle any grammar you can define in BNF (and more!). In particular, while most existing JS parsers such as PEGjs and Jison choke on certain grammars (e.g. left recursive ones), nearley handles them easily and efficiently by using the Earley parsing algorithm.
nearley is used by a wide variety of projects:
nearley is an npm staff pick.
Please visit our website https://nearley.js.org to get started! You will find a tutorial, detailed reference documents, and links to several real-world examples to get inspired.
Please read this document before working on nearley. If you are interested in contributing but unsure where to start, take a look at the issues labeled "up for grabs" on the issue tracker, or message a maintainer (@kach or @tjvr on Github).
nearley is MIT licensed.
A big thanks to Nathan Dinsmore for teaching me how to Earley, Aria Stewart for helping structure nearley into a mature module, and Robin Windels for bootstrapping the grammar. Additionally, Jacob Edelman wrote an experimental JavaScript parser with nearley and contributed ideas for EBNF support. Joshua T. Corbin refactored the compiler to be much, much prettier. Bojidar Marinov implemented postprocessors-in-other-languages. Shachar Itzhaky fixed a subtle bug with nullables.
If you are citing nearley in academic work, please use the following BibTeX entry.
1@misc{nearley, 2 author = "Kartik Chandra and Tim Radvan", 3 title = "{nearley}: a parsing toolkit for {JavaScript}", 4 year = {2014}, 5 doi = {10.5281/zenodo.3897993}, 6 url = {https://github.com/kach/nearley} 7}
No vulnerabilities found.
Reason
no vulnerabilities detected
Reason
tokens are read-only in GitHub workflows
Reason
license file detected
Details
Reason
no dangerous workflow patterns detected
Reason
all dependencies are pinned
Details
Reason
no binaries found in the repo
Reason
GitHub code reviews found for 5 commits out of the last 30 -- score normalized to 1
Details
Reason
0 commit(s) out of 30 and 2 issue activity out of 30 found in the last 90 days -- score normalized to 1
Reason
no badge detected
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Reason
no update tool detected
Details
Score
Last Scanned on 2022-08-15
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More