Skip to content
JS
Package

pug-code-gen

Default code-generator for pug. It generates HTML via a JavaScript template function.

v3.0.4, 13 Mar 2026MIT-Types: NoneTemplating
$ npm install pug-code-gen

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
02m4m6mSept 2025Mar 2026Sept 2026High 4.3m (21 Jul 2026)Low 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,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

  1. v3 first release 3.0.0, 25 May 2020
  2. v2 first release 2.0.0, 6 Sept 2017
  3. v1 first release 1.0.0, 10 Aug 2016
  4. v0 first release 0.0.0, 12 Dec 2015

Recent releases

VersionPublished
3.0.413 Mar 2026
3.0.324 May 2024
2.0.328 Feb 2021
3.0.228 Feb 2021
3.0.125 May 2020
3.0.025 May 2020
2.0.218 Jun 2019
2.0.16 Mar 2018
2.0.06 Sept 2017
1.1.124 Jan 2017
1.1.024 Aug 2016
1.0.110 Aug 2016
1.0.010 Aug 2016
0.0.715 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
  • jsDelivrhttps://cdn.jsdelivr.net/npm/pug-code-gen@3.0.4/
  • unpkghttps://unpkg.com/pug-code-gen@3.0.4/
  • esm.shhttps://esm.sh/pug-code-gen@3.0.4
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.