Skip to content
JS
Package category

Parsers and serialisers

Parse and generate JSON, YAML, TOML, CSV, XML, Markdown and other formats.

1,438 packages70 comparisons

Packages compared

1,438 packages
PackageWeekly downloads12-month change52 weeksGzipLast releaseModuleTypesCategories
postcss
Tool for transforming styles with JS plugins
229.7m+138%-21 days ago
8.5.28
ESM + CommonJSBundledCSS-in-JS and styling, Parsers and serialisers
js-yaml
YAML 1.2 parser and serializer
222m+100%-12 days ago
5.4.2
ESM + CommonJSBundledParsers and serialisers
js-tokens
Tiny JavaScript tokenizer.
192.1m+159%-9 months ago
10.0.0
ESM onlyBundledParsers and serialisers
strip-json-comments
Strip comments from JSON. Lets you use comments in your JSON files!
158.2m+100%-1 year ago
5.0.3
ESM onlyBundledParsers and serialisers
yaml
JavaScript parser and stringifier for YAML
149.5m+115%-13 days ago
2.9.1
CommonJSBundledParsers and serialisers
jsesc
Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.
140.5m+80%-1 year ago
3.1.0
CommonJSNoneParsers and serialisers
espree
An Esprima-compatible JavaScript parser built on Acorn
127.8m+107%-6 months ago
11.2.0
ESM + CommonJSBundledParsers and serialisers
flatted
A super light and fast circular JSON parser.
118m+131%-1 month ago
3.4.4
ESM onlyBundledParsers and serialisers
parse5
HTML parser and serializer.
115.5m+117%-5 months ago
8.0.1
ESM onlyBundledParsers and serialisers
lightningcss
A CSS parser, transformer, and minifier written in Rust
113.9m+1051%-2 months ago
1.33.0
ESM + CommonJSBundledParsers and serialisers, Build tools
body-parser
Node.js body parsing middleware
105.2m+124%-3 months ago
2.3.0
CommonJSNoneParsers and serialisers
@eslint-community/regexpp
Regular expression parser for ECMAScript.
103.4m+153%-11 months ago
4.12.2
ESM + CommonJSBundledParsers and serialisers
lightningcss-linux-x64-gnu
A CSS parser, transformer, and minifier written in Rust
102.3m+1048%-2 months ago
1.33.0
CommonJSNoneParsers and serialisers, Build tools
range-parser
Range header field string parser
97.5m+123%-2 months ago
1.3.0
-NoneParsers and serialisers, Node.js utilities
mdn-data
Open Web data by the Mozilla Developer Network
90.6m+127%-2 days ago
2.37.0
CommonJSNoneCSS-in-JS and styling, Parsers and serialisers
css-tree
A tool set for CSS: fast detailed parser (CSS → AST), walker (AST traversal), generator (AST → CSS) and lexer (validation and matching) based on specs and browser implementations
88.1m+116%-6 months ago
3.2.1
ESM + CommonJSNoneParsers and serialisers, CSS-in-JS and styling
esprima
ECMAScript parsing infrastructure for multipurpose analysis
85m+40%-8 years ago
4.0.1
CommonJSNoneParsers and serialisers
postcss-value-parser
Transforms css values and at-rule params into the tree
84.1m+72%-4 years ago
4.2.0
CommonJSBundledParsers and serialisers, CSS-in-JS and styling
lightningcss-linux-x64-musl
A CSS parser, transformer, and minifier written in Rust
81m+217%-2 months ago
1.33.0
CommonJSNoneParsers and serialisers, Build tools
saxes
An evented streaming XML parser in JavaScript
71.7m+170%-4 years ago
6.0.0
CommonJSBundledParsers and serialisers
htmlparser2
Fast & forgiving HTML/XML parser
71.7m+75%-6 months ago
12.0.0
ESM onlyBundledParsers and serialisers, DOM and browser utilities
sax
An evented streaming XML parser in JavaScript
67.9m+83%-2 months ago
1.6.1
CommonJSNoneParsers and serialisers
w3c-xmlserializer
A per-spec XML serializer implementation
64m+139%-4 days ago
6.0.0
CommonJSNoneParsers and serialisers
terser
JavaScript parser, mangler/compressor and beautifier toolkit for ES6+
61.7m+68%-29 days ago
5.51.2
ESM + CommonJSBundledParsers and serialisers, Compression and archives
marked
A markdown parser built for speed
55.3m+276%-3 days ago
18.0.14
ESM onlyBundledParsers and serialisers, Markdown
micromark-util-symbol
micromark utility with symbols
50.8m+213%-1 year ago
2.0.1
ESM onlyNoneMarkdown, Parsers and serialisers
ast-types
Esprima-compatible implementation of the Mozilla JS Parser API
48.3m+78%-25 days ago
0.16.3
CommonJSBundledParsers and serialisers
micromark-util-character
micromark utility to handle character codes
48.2m+241%-1 year ago
2.1.1
ESM onlyBundledMarkdown, Parsers and serialisers
unist-util-visit
unist utility to visit nodes
47.9m+174%-8 months ago
5.1.0
ESM onlyBundledParsers and serialisers, Markdown
confbox
Compact YAML, TOML, JSONC, JSON5 and INI parser and serializer
45.7m+205%-22 days ago
0.3.1
ESM onlyBundledParsers and serialisers
postgres-bytea
Postgres bytea parser
44.6m+187%-6 years ago
3.0.0
CommonJSNoneParsers and serialisers, Database clients and drivers
mdast-util-to-string
mdast utility to get the plain text content of a node
42m+168%-3 years ago
4.0.0
ESM onlyBundledParsers and serialisers, Markdown
micromark
small commonmark compliant markdown parser with positional info and concrete tokens
41.5m+220%-1 year ago
4.0.2
ESM onlyBundledMarkdown, Parsers and serialisers
micromark-util-encode
micromark utility to encode dangerous html characters
41.4m+250%-1 year ago
2.0.1
ESM onlyBundledMarkdown, Parsers and serialisers
@adobe/css-tools
A modern CSS parser and stringifier with TypeScript support
41.2m+145%-4 months ago
4.5.0
ESM + CommonJSBundledTypeScript tooling, Parsers and serialisers
mdast-util-from-markdown
mdast utility to parse markdown
40.6m+237%-7 months ago
2.0.3
ESM onlyBundledParsers and serialisers, Markdown
serialize-javascript
Serialize JavaScript to a superset of JSON that includes regular expressions and functions.
40.3m+0%-1 day ago
7.1.2
CommonJSNoneParsers and serialisers
micromark-util-chunked
micromark utility to splice and push with giant arrays
39.4m+249%-1 year ago
2.0.1
ESM onlyBundledMarkdown, Parsers and serialisers
micromark-util-html-tag-name
micromark utility with list of html tag names
39.2m+252%-1 year ago
2.0.1
ESM onlyBundledMarkdown, Parsers and serialisers
micromark-util-classify-character
micromark utility to classify whether a character is whitespace or punctuation
39m+271%-1 year ago
2.0.1
ESM onlyBundledMarkdown, Parsers and serialisers
micromark-util-resolve-all
micromark utility to resolve subtokens
38.9m+272%-1 year ago
2.0.1
ESM onlyBundledMarkdown, Parsers and serialisers
micromark-util-decode-numeric-character-reference
micromark utility to decode numeric character references
38.9m+271%-1 year ago
2.0.2
ESM onlyBundledMarkdown, Parsers and serialisers
micromark-util-normalize-identifier
micromark utility normalize identifiers (as found in references, definitions)
38.8m+254%-1 year ago
2.0.1
ESM onlyBundledMarkdown, Parsers and serialisers
micromark-util-subtokenize
micromark utility to tokenize subtokens
38.8m+272%-1 year ago
2.1.0
ESM onlyBundledMarkdown, Parsers and serialisers
micromark-util-combine-extensions
micromark utility to combine syntax or html extensions
38.8m+279%-1 year ago
2.0.1
ESM onlyBundledMarkdown, Parsers and serialisers
micromark-factory-label
micromark factory to parse labels (found in media, definitions)
38.8m+291%-1 year ago
2.0.1
ESM onlyBundledMarkdown, Parsers and serialisers
micromark-factory-destination
micromark factory to parse destinations (found in resources, definitions)
38.8m+250%-1 year ago
2.0.1
ESM onlyBundledMarkdown, Parsers and serialisers
cssom
CSS Object Model implementation and CSS parser
38.5m+21%-5 years ago
0.5.0
CommonJSNoneParsers and serialisers, DOM and browser utilities
mdast-util-to-markdown
mdast utility to serialize markdown
37.7m+251%-1 year ago
2.1.2
ESM onlyBundledParsers and serialisers, Markdown
spdx-license-ids
A list of SPDX license identifiers
37.6m+17%-8 days ago
3.0.24
-NoneParsers and serialisers

12-month change compares the average of the last 4 weeks of downloads with the first 4 weeks of the 52-week series. Gzip size is for the whole package, as measured by Bundlephobia. "-" means the value has not been fetched.