JavaScript Parser

Open-source JavaScript projects categorized as Parser

Top 23 JavaScript Parser Projects

  • terser

    🗜 JavaScript parser, mangler and compressor toolkit for ES6+

    Project mention: Things you forgot because of React | news.ycombinator.com | 2023-08-15

    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...

  • astexplorer

    A web tool to explore the ASTs generated by various parsers.

    Project mention: AST Exploret | news.ycombinator.com | 2023-09-05
  • 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.

  • body-parser

    Node.js body parsing middleware

    Project mention: I built a ready-to-use auth server with TypeScript and Express.js | /r/node | 2023-03-22
  • parser

    📜 Extract meaningful content from the chaos of a web page

    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

  • ohm

    A library and language for building parsers, interpreters, compilers, etc.

    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!

  • nearley

    📜🔜🌲 Simple, fast, powerful parser toolkit for JavaScript.

    Project mention: Writing a C compiler in 500 lines of Python | news.ycombinator.com | 2023-09-04

    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

  • posthtml

    PostHTML is a tool to transform HTML/XML with JS plugins

  • snarkdown

    :smirk_cat: A snarky 1kb Markdown parser written in JavaScript

  • fast-xml-parser

    Validate XML, Parse XML and Build XML rapidly without C/C++ based libraries and no callback.

    Project mention: XML: read and write with Node.js | dev.to | 2022-12-10

    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.)

  • html-react-parser

    :memo: HTML to React parser.

    Project mention: Alternatives to dangerouslySetInnerHTML | /r/reactjs | 2023-03-06

    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

    Project mention: Building a lightweight CSS formatter | dev.to | 2023-06-12

    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: Croner – Cron for JavaScript and TypeScript | news.ycombinator.com | 2023-08-30
  • google-libphonenumber

    The up-to-date and reliable Google's libphonenumber package for node.js.

  • xml-js

    Converter utility between XML text and Javascript object / JSON text.

    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

  • arg

    Simple argument parsing

  • expr-eval

    Mathematical expression evaluator in JavaScript

  • swagger-parser

    Swagger 2.0 and OpenAPI 3.0 parser/validator

  • exifr

    📷 The fastest and most versatile JS EXIF reading library.

    Project mention: Exif reader packages | /r/rprogramming | 2023-06-09

    I found this tool for JS that allows for 30x quicker exif tag reading than exiftool from photos, and here is a comparison:

  • himalaya

    JavaScript HTML to JSON Parser (by andrejewski)

  • webassemblyjs

    Toolchain for WebAssembly

  • Kuiper

    Digital Forensics Investigation Platform

  • 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.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-09-05.

JavaScript Parser related posts

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
Updating dependencies is time-consuming.
Solutions like Dependabot or Renovate update but don't merge dependencies. You need to do it manually while it could be fully automated! Add a Merge Queue to your workflow and stop caring about PR management & merging. Try Mergify for free.
blog.mergify.com