marked VS PEG.js

Compare marked vs PEG.js and see what are their differences.

marked

A markdown parser and compiler. Built for speed. (by markedjs)

PEG.js

PEG.js: Parser generator for JavaScript (by pegjs)
Our great sponsors
  • Nanos - Run Linux Software Faster and Safer than Linux with Unikernels
  • Scout APM - A developer's best friend. Try free for 14-days
  • SaaSHub - Software Alternatives and Reviews
marked PEG.js
23 3
26,434 4,158
1.1% 0.7%
9.4 0.0
5 days ago 26 days ago
JavaScript JavaScript
GNU General Public License v3.0 or later MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

marked

Posts with mentions or reviews of marked. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-12-02.

PEG.js

Posts with mentions or reviews of PEG.js. We have used some of these posts to build our list of alternatives and similar projects.
  • PEG Parsers: sometimes more appropriate than Regex
    1 project | dev.to | 22 Aug 2021
    In past blog posts, where I've written about PEG, I've used Parsimonious in Python, such as three of my solutions to the 2020 Advent Of Code challenges (here, (here)[https://dev.to/meseta/advent-of-code-day-18-finally-using-peg-grammar-in-python-in-the-way-it-s-supposed-to-3253], and (here)[https://dev.to/meseta/advent-of-code-day-19-abusing-peg-grammar-in-python-the-way-it-s-not-supposed-to-2beg]). This time, because the rest of the website is javascript, I will be using PEG.js instead to avoid adding an extra programming language to the codebase.
  • Formal Logic Rules for a computer-assisted RPG
    1 project | reddit.com/r/rpg | 6 Jun 2021
    Update: I started writing a grammar for this language in PEG using PEG.js. This was super fun, I'll take a stab at an interpreter next, that should be much harder.
  • I'd like to ask you guys a question, how or in what way is a Programming Language made?
    1 project | reddit.com/r/AskProgramming | 4 Apr 2021
    I was going to post the same thing. This really helped me understand the concepts better back in the day. They also have examples for some popular languages on their github: https://github.com/pegjs/pegjs/tree/master/examples

What are some alternatives?

When comparing marked and PEG.js you can also consider the following projects:

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

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

remark - remark is a popular tool that transforms markdown with plugins. These plugins can inspect and change your markup. You can use remark on the server, the client, CLIs, deno, etc.

Jison - Bison in JavaScript.

js-yaml - JavaScript YAML parser and dumper. Very fast.

Chevrotain - Parser Building Toolkit for JavaScript

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

peggy - Peggy: Parser generator for JavaScript

Jinja2 - A very fast and expressive template engine.

parse-json - Parse JSON with more helpful errors

parsec 🌌 - 🌌 Tiniest body parser in the universe. Built for modern Node.js