Sonar helps you commit clean code every time. With over 300 unique rules to find JavaScript bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work. Learn more →
Top 23 JavaScript Parser Projects
-
They can do it, it is just turned off by default and require more advanced configuration.
https://github.com/terser/terser#cli-mangling-property-names...
-
-
Amplication
Amplication: open-source Node.js backend code generator. An open-source platform that helps developers build backends without spending time on boilerplate & repetitive coding. Including production-ready GraphQL & REST APIs, DB schema, DTOs, filtering, pagination, RBAC, & more.
-
remarkable
Markdown parser, done right. Commonmark support, extensions, syntax plugins, high speed - all in one. Gulp and metalsmith plugins available. Used by Facebook, Docusaurus and many others! Use https://github.com/breakdance/breakdance for HTML-to-markdown conversion. Use https://github.com/jonschlinkert/markdown-toc to generate a table of contents.
-
Project mention: I built a ready-to-use auth server with TypeScript and Express.js | /r/node | 2023-03-22
-
Project mention: Trouble Building Chrome Extension to Get News Article Content | /r/webdev | 2022-11-22
I've been working on an enhanced reader mode extension for the last few months. I found that Mercury Reader's parser tool is useful for extracting content. If that's not exactly what you're looking for, readibility is another good option. It's a library used inside Firefox's reader moder that you can use in any project.
-
globalize
A JavaScript library for internationalization and localization that leverages the official Unicode CLDR JSON data
-
Project mention: Is there a generalised, abstract programming language, designed to be specialised to a specific domain? | /r/ProgrammingLanguages | 2022-11-09
Look for OMeta and its successor Ohm.
-
Appwrite
Appwrite - The open-source backend cloud platform. The open-source backend cloud platform for developing Web, Mobile, and Flutter applications. You can set up your backend faster with real-time APIs for authentication, databases, file storage, cloud functions, and much more!
-
While I suspect I would learn more writing a tokenizer and parsing logic myself I find grammars much easier to read and maintain.
ANTLR is pretty good and is supported across several languages and something I had previously used for some quick Elasticsearch query syntax munging in Python. It also means you can often start from an already existing grammar.
The JS version of ANTLR didn't seem to work for me so for the SQL/JSONPath stuff ended up using the Moo lever and Nearly parser which was rather pleasant. https://nearley.js.org
-
-
-
fast-xml-parser
Validate XML, Parse XML and Build XML rapidly without C/C++ based libraries and no callback.
After experimenting with a few different XML parsers I settled on fast-xml-parser. It's fast, it's simple and it's well maintained. It also handles XML namespaces and attributes well. (This appears to be rare in XML parsers.)
-
I was thinking about some sanitization library but found this: https://github.com/remarkablemark/html-react-parser which i have reviewed to deeply yet.
-
csstree
A tool set for CSS including fast detailed parser, walker, generator and lexer based on W3C specs and browser implementations
After thinking about the problem for a while I realised that I could enlist the help of CSSTree to do some of the work. The CSS Analyzer is based on CSSTree's AST, so I know how the thing works and the dependency is already on the page, so no need to download more dependencies. Prettier + Postcss cost almost 340kB to download, which isn't huge, but it would be nice if we could reduce that amount.
-
croner
Trigger functions or evaluate cron expressions in JavaScript or TypeScript. No dependencies. Most features. Node. Deno. Bun. Browser.
-
-
Project mention: Any well typed NPM packages for converting both ways between XML <-> TS objects... that use a consistent type for XML nodes (with the tag name inside the object)? | /r/typescript | 2023-01-24
I found this: https://github.com/nashwaan/xml-js
-
-
-
-
I found this tool for JS that allows for 30x quicker exif tag reading than exiftool from photos, and here is a comparison:
-
-
-
-
SurveyJS
A Non-Cloud Alternative to Google Forms that has it all.. SurveyJS JavaScript libraries allow you to easily set up a robust form management system fully integrated into your IT infrastructure where users can create and edit multiple dynamic JSON-based forms in a no-code form builder. Learn more now.
JavaScript Parser related posts
- AST Exploret
- Writing a C compiler in 500 lines of Python
- [Project Share] List dialog that supports complex HTML and Markdown format.
- Help needed!
- Understanding Source Maps: Simplifying Debugging
- Creating my own typescript compiler
- Need help - sanitizeHtml with marked doesn't render special characters correctly (& is &amp; and then &amp;amp)
-
A note from our sponsor - Sonar
www.sonarsource.com | 25 Sep 2023
Index
What are some of the best open-source Parser projects in JavaScript? This list will help you:
Project | Stars | |
---|---|---|
1 | terser | 8,049 |
2 | astexplorer | 5,621 |
3 | remarkable | 5,572 |
4 | body-parser | 5,323 |
5 | parser | 4,935 |
6 | globalize | 4,762 |
7 | ohm | 4,485 |
8 | nearley | 3,459 |
9 | posthtml | 2,894 |
10 | snarkdown | 2,180 |
11 | fast-xml-parser | 2,096 |
12 | html-react-parser | 1,809 |
13 | csstree | 1,741 |
14 | croner | 1,576 |
15 | google-libphonenumber | 1,306 |
16 | xml-js | 1,206 |
17 | arg | 1,154 |
18 | expr-eval | 1,093 |
19 | swagger-parser | 996 |
20 | exifr | 894 |
21 | himalaya | 886 |
22 | webassemblyjs | 742 |
23 | Kuiper | 665 |