Skip to content
JS
Package

twig

JS port of the Twig templating language.

v3.0.0, 26 Mar 2026BSD-2-ClauseCommonJSTypes: None
$ npm install twig

Key numbers

As of 25 Sept 2026
Weekly downloads
510.6k
+37% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
4
Direct, from package.json
Last release
5 months ago
v3.0.0
GitHub stars
-
Open issues / PRs
- / -
Contributors
-
Commits, last 52 weeks
-

Downloads

Last week 2026-09-15 to 2026-09-21
0200k400k600k800kSept 2025Mar 2026Sept 2026High 797.7k (25 Aug 2026)Low 181k (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.

510,556 downloads last week, 2,475,888 in the last month. The 12-month change of +37% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
265 in total
Latest version
3.0.0, 26 Mar 20265 months ago
First published
15 Oct 2011
Last push to GitHub
-
Repository archived
-
Open issues
-
Open pull requests
-
Commits, last 52 weeks
-
Dependents on npm
-

Major versions

  1. v3 first release 3.0.0, 26 Mar 2026
  2. v2 first release 2.0.0, 9 Mar 2026
  3. v1 first release 1.10.4, 2 Mar 2017
  4. v0 first release 0.1.0, 15 Oct 2011

Recent releases

VersionPublished
3.0.026 Mar 2026
2.0.09 Mar 2026
1.17.116 Nov 2023
1.17.016 Nov 2023
1.16.028 Feb 2023
1.15.427 Nov 2020
1.15.37 Nov 2020
1.15.217 Aug 2020
1.15.116 Apr 2020
1.15.020 Feb 2020
1.14.013 Nov 2019
1.13.33 May 2019
1.13.222 Jan 2019
1.13.119 Jan 2019
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=22
Runtimes
-
Unpacked size (npm)
1.1 MB
Dependencies (4)
walklocutusminimatch@babel/runtime
npm install twig

CDN

jsDelivr: 4m requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/twig@3.0.0/
  • unpkghttps://unpkg.com/twig@3.0.0/
  • esm.shhttps://esm.sh/twig@3.0.0
Sources: npm registry, npm downloads API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): GitHub data not fetched yet; no category.