Package
pug-lexer
The pug lexer (takes a string and converts it to an array of tokens)
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
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
- v5 first release 5.0.0, 25 May 2020
- v4 first release 4.0.0, 6 Mar 2018
- v3 first release 3.0.0, 4 Feb 2017
- v2 first release 2.0.0, 14 May 2016
- v1 first release 1.0.0, 23 Dec 2015
- v0 first release 0.0.0, 11 Dec 2015
Recent releases
| Version | Published |
|---|---|
| 5.0.1 | 28 Feb 2021 |
| 5.0.0 | 25 May 2020 |
| 4.1.0 | 18 Jun 2019 |
| 4.0.0 | 6 Mar 2018 |
| 3.1.0 | 18 Apr 2017 |
| 3.0.0 | 4 Feb 2017 |
| 2.3.2 | 29 Jan 2017 |
| 2.3.1 | 24 Jan 2017 |
| 2.3.0 | 12 Sept 2016 |
| 2.2.2 | 7 Sept 2016 |
| 2.2.1 | 29 Aug 2016 |
| 2.2.0 | 26 Aug 2016 |
| 2.1.0 | 22 Aug 2016 |
| 2.0.3 | 7 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- jsDelivr
https://cdn.jsdelivr.net/npm/pug-lexer@5.0.1/ - unpkg
https://unpkg.com/pug-lexer@5.0.1/ - esm.sh
https://esm.sh/pug-lexer@5.0.1
Indexability: Indexed.