JavaScript Parsing

Open-source JavaScript projects categorized as Parsing

Top 23 JavaScript Parsing Projects

  • marked

    A markdown parser and compiler. Built for speed.

  • Project mention: Eleventy vs. Next.js for static site generation | dev.to | 2023-12-14

    Next, install gray-matter to extract metadata from the front matter of markdown files, and marked to convert the markdown files to HTML:

  • CyberChef

    The Cyber Swiss Army Knife - a web app for encryption, encoding, compression and data analysis

  • Project mention: PicoCTF 2024: packer | dev.to | 2024-04-05

    Then we take the encrypted text and use CyberChef to decrypt it.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • markdown-it

    Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed

  • Project mention: Creating excerpts in Astro | dev.to | 2024-03-14

    Parse it into HTML using markdown-it

  • remark

    markdown processor powered by plugins part of the @unifiedjs collective (by remarkjs)

  • Project mention: Which software do you use to create presentations using Vim that is superior to existing ones? | /r/neovim | 2023-12-11

    I also didn't try this tool but it's called RemarkJS which is named too similar to revealjs.

  • js-yaml

    JavaScript YAML parser and dumper. Very fast.

  • x-ray

    The next web scraper. See through the <html> noise.

  • ohm

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

  • Project mention: Ohm: A library and language for building parsers, interpreters, compilers, etc. | news.ycombinator.com | 2023-10-31

    Building an interpreter or a compiler from a grammar is an interesting idea. I can't immediately see how to go about it - the grammar would need to match on SSA or similar.

    The examples have a lisp-like interpreter at https://github.com/ohmjs/ohm/blob/main/examples/simple-lisp/... which definitely uses a grammar for parsing and might use a generic AST representation.

    Will have to think more - a grammar might be a worthwhile way to specify a nanopass style compiler pipeline.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • PEG.js

    PEG.js: Parser generator for JavaScript

  • Project mention: Peg.js: Parser Generator for JavaScript | news.ycombinator.com | 2023-11-24
  • Jison

    Bison in JavaScript.

  • 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

  • fast-xml-parser

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

  • fecha

    Lightweight and simple JS date formatting and parsing

  • csv-parser

    Streaming csv parser inspired by binary-csv that aims to be faster than everyone else

  • Project mention: Basic analytics with Vercel Postgres, Drizzle & Astro | dev.to | 2024-01-17

    Inside the API route, convert the CSV file to JSON with csv-parser

  • google-libphonenumber

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

  • Making-a-custom-React-renderer

    Tutorial on how to make a custom React renderer

  • xlsx-populate

    Excel XLSX parser/generator written in JavaScript with Node.js and browser support, jQuery/d3-style method chaining, encryption, and a focus on keeping existing workbook features and styles in tact.

  • json-mask

    Tiny language and engine for selecting specific parts of a JS object, hiding the rest.

  • wild-wild-path

    🤠 Object property paths with wildcards and regexps 🌵

  • Awesome phonenumber parser

    Google's libphonenumber pre-compiled with the closure compiler

  • strip-json-comments

    Strip comments from JSON. Lets you use comments in your JSON files!

  • json-query

    Retrieves values from JSON objects for data binding

  • ref

    Turn Buffer instances into "pointers"

  • parse-json

    Parse JSON with more helpful errors

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

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

JavaScript Parsing related posts

Index

What are some of the best open-source Parsing projects in JavaScript? This list will help you:

Project Stars
1 marked 31,885
2 CyberChef 25,541
3 markdown-it 17,130
4 remark 7,187
5 js-yaml 6,185
6 x-ray 5,831
7 ohm 4,877
8 PEG.js 4,726
9 Jison 4,322
10 nearley 3,548
11 fast-xml-parser 2,358
12 fecha 2,058
13 csv-parser 1,395
14 google-libphonenumber 1,348
15 Making-a-custom-React-renderer 1,296
16 xlsx-populate 925
17 json-mask 861
18 wild-wild-path 713
19 Awesome phonenumber parser 640
20 strip-json-comments 589
21 json-query 532
22 ref 448
23 parse-json 336

Sponsored
The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
workos.com