Skip to content
JS
Package

pug-lexer

The pug lexer (takes a string and converts it to an array of tokens)

v5.0.1, 28 Feb 2021MIT-Types: NoneTemplating
$ npm install pug-lexer

Key numbers

As of 25 Sept 2026
Weekly downloads
2.8m
+63% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
3
Direct, from package.json
Last release
5 years ago
v5.0.1
GitHub stars
21.8k
1.9k forks
Open issues / PRs
300 / 35
Contributors
-
Commits, last 52 weeks
2

Downloads

Last week 2026-09-15 to 2026-09-21
02m4m6mSept 2025Mar 2026Sept 2026High 4.3m (21 Jul 2026)Low 1.1m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

2,767,644 downloads last week, 13,124,188 in the last month. The 12-month change of +63% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
021 in total
Latest version
5.0.1, 28 Feb 20215 years ago
First published
11 Dec 2015
Last push to GitHub
13 Mar 2026195 days before the snapshot
Repository archived
No
Open issues
300
Open pull requests
35
Commits, last 52 weeks
2
Dependents on npm
-

Major versions

  1. v5 first release 5.0.0, 25 May 2020
  2. v4 first release 4.0.0, 6 Mar 2018
  3. v3 first release 3.0.0, 4 Feb 2017
  4. v2 first release 2.0.0, 14 May 2016
  5. v1 first release 1.0.0, 23 Dec 2015
  6. v0 first release 0.0.0, 11 Dec 2015

Recent releases

VersionPublished
5.0.128 Feb 2021
5.0.025 May 2020
4.1.018 Jun 2019
4.0.06 Mar 2018
3.1.018 Apr 2017
3.0.04 Feb 2017
2.3.229 Jan 2017
2.3.124 Jan 2017
2.3.012 Sept 2016
2.2.27 Sept 2016
2.2.129 Aug 2016
2.2.026 Aug 2016
2.1.022 Aug 2016
2.0.37 Aug 2016
Module format
-Not determined from package.json
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
58 kB
Dependencies (3)
pug-erroris-expressioncharacter-parser
npm install pug-lexer
  • jsDelivrhttps://cdn.jsdelivr.net/npm/pug-lexer@5.0.1/
  • unpkghttps://unpkg.com/pug-lexer@5.0.1/
  • esm.shhttps://esm.sh/pug-lexer@5.0.1
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.