A powerful templating engine with inheritance, asynchronous control, and more (jinja2 inspired)
Installations
npm install nunjucks
Developer
Developer Guide
Module System
CommonJS, UMD
Min. Node Version
>= 6.9.0
Typescript Support
No
Node Version
16.16.0
NPM Version
8.11.0
Statistics
8,593 Stars
1,317 Commits
641 Forks
140 Watching
7 Branches
140 Contributors
Updated on 28 Nov 2024
Bundle Size
92.35 kB
Minified
25.82 kB
Minified + Gzipped
Languages
JavaScript (93.51%)
HTML (4.93%)
Nunjucks (1.34%)
Python (0.2%)
Batchfile (0.03%)
Total Downloads
Cumulative downloads
Total Downloads
136,925,829
Last day
-9.7%
189,609
Compared to previous day
Last week
7.4%
1,102,529
Compared to previous week
Last month
10.3%
4,508,255
Compared to previous month
Last year
47.4%
38,757,302
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
3
Peer Dependencies
1
Dev Dependencies
29
Nunjucks
Nunjucks is a full featured templating engine for javascript. It is heavily inspired by jinja2. View the docs here.
Installation
npm install nunjucks
To use the file watcher built-in to Nunjucks, Chokidar must be installed separately.
npm install nunjucks chokidar
(View the CHANGELOG)
Documentation
See here.
Browser Support
Supported in all modern browsers. For IE8 support, use es5-shim.
Tests
Run the tests with npm test
.
Watch master
branch's tests running in the browser.
Mailing List
Join our mailing list and get help with and issues you have: https://groups.google.com/forum/?fromgroups#!forum/nunjucks
Want to help?
Contributions are always welcome! Before you submit an issue or pull request, please read our contribution guidelines.
Stable Version
The latest stable version of the package.
Stable Version
3.2.4
MODERATE
2
6.1/10
Summary
Nunjucks autoescape bypass leads to cross site scripting
Affected Versions
< 3.2.4
Patched Versions
3.2.4
0/10
Summary
Cross-Site Scripting in nunjucks
Affected Versions
< 2.4.3
Patched Versions
2.4.3
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: BSD 2-Clause "Simplified" License: LICENSE:0
Reason
Found 13/24 approved changesets -- score normalized to 5
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/tests.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/mozilla/nunjucks/tests.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/mozilla/nunjucks/tests.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/mozilla/nunjucks/tests.yml/master?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/tests.yml:38
- Info: 0 out of 3 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 npmCommand dependencies pinned
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 21 are checked with a SAST tool
Score
3.9
/10
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More