Package
pug-code-gen
Default code-generator for pug. It generates HTML via a JavaScript template function.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 2.7m
- +66% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 8
- Direct, from package.json
- Last release
- 6 months ago
- v3.0.4
- 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,714,476 downloads last week, 12,949,072 in the last month. The 12-month change of +66% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 117 in total
- Latest version
- 3.0.4, 13 Mar 20266 months ago
- First published
- 12 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
- v3 first release 3.0.0, 25 May 2020
- v2 first release 2.0.0, 6 Sept 2017
- v1 first release 1.0.0, 10 Aug 2016
- v0 first release 0.0.0, 12 Dec 2015
Recent releases
| Version | Published |
|---|---|
| 3.0.4 | 13 Mar 2026 |
| 3.0.3 | 24 May 2024 |
| 2.0.3 | 28 Feb 2021 |
| 3.0.2 | 28 Feb 2021 |
| 3.0.1 | 25 May 2020 |
| 3.0.0 | 25 May 2020 |
| 2.0.2 | 18 Jun 2019 |
| 2.0.1 | 6 Mar 2018 |
| 2.0.0 | 6 Sept 2017 |
| 1.1.1 | 24 Jan 2017 |
| 1.1.0 | 24 Aug 2016 |
| 1.0.1 | 10 Aug 2016 |
| 1.0.0 | 10 Aug 2016 |
| 0.0.7 | 15 Mar 2016 |
- Module format
- -Not determined from package.json
- TypeScript types
- None
- Node.js engine range
- Not declared
- Runtimes
- -
- Unpacked size (npm)
- 28 kB
- Dependencies (8)
withdoctypespug-attrspug-errorpug-runtimejs-stringifyvoid-elementsconstantinople
npm install pug-code-gen- jsDelivr
https://cdn.jsdelivr.net/npm/pug-code-gen@3.0.4/ - unpkg
https://unpkg.com/pug-code-gen@3.0.4/ - esm.sh
https://esm.sh/pug-code-gen@3.0.4
Indexability: Indexed.