# nunjucks

> A powerful templating engine with inheritance, asynchronous control, and more (jinja2 inspired)

Latest version **3.2.4** (published 2023-04-13) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install nunjucks
pnpm add nunjucks
yarn add nunjucks
bun add nunjucks
```

Provides the command `nunjucks-precompile`.

## Health

**Score 33/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.2.4 |
| Published | 2023-04-13 |
| First published | 2012-09-19 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | separate (@types/nunjucks) |
| Module format | CommonJS |
| Node | >= 6.9.0 |
| Dependencies | 3 |
| Unpacked size | 1.7 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8996 |
| Author | James Long |
| Maintainers | jlongster, vecmezoni, samypesse, carljm, fdintino |
| Keywords | template, templating |

## Links

- npm: https://www.npmjs.com/package/nunjucks
- Repository: https://github.com/mozilla/nunjucks
- Homepage: https://github.com/mozilla/nunjucks#readme
- Issues: https://github.com/mozilla/nunjucks/issues
- npm.io page: https://npm.io/package/nunjucks

## Dependencies (3)

- [asap](https://npm.io/package/asap.md) ^2.0.3
- [commander](https://npm.io/package/commander.md) ^5.1.0
- [a-sync-waterfall](https://npm.io/package/a-sync-waterfall.md) ^1.0.0

## Recent versions

- 3.2.4 (latest) — 2023-04-13
- 3.2.3 — 2021-02-15
- 3.2.2 — 2020-07-20
- 3.2.1 — 2020-03-17
- 3.2.0 — 2019-03-05
- 3.1.7 — 2019-01-12
- 3.1.6 — 2018-12-13
- 3.1.4 — 2018-11-09
- 3.1.3 — 2018-05-19
- 3.1.2 — 2018-02-24
- 3.1.0 — 2018-02-20
- 3.0.1 — 2017-05-24
- 3.0.0 — 2016-11-05
- 2.5.2 — 2016-09-14
- 2.5.1 — 2016-09-13
- … 43 more at https://npm.io/package/nunjucks/versions

## README

# Nunjucks

[![NPM Version][npm-image]][npm-url]
[![NPM Downloads][downloads-image]][downloads-url]
[![Linux Build][github-actions-image]][github-actions-url]
[![Windows Build][appveyor-image]][appveyor-url]
[![Test Codecov][codecov-image]][codecov-url]

[Nunjucks](https://mozilla.github.io/nunjucks/) is a full featured
templating engine for javascript. It is heavily inspired by
[jinja2](http://jinja.pocoo.org/). View the docs
[here](https://mozilla.github.io/nunjucks/).

## 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](https://github.com/mozilla/nunjucks/releases))

## Documentation

See [here](https://mozilla.github.io/nunjucks/).

## Browser Support

Supported in all modern browsers. For IE8 support, use [es5-shim](https://github.com/es-shims/es5-shim).

## Tests

Run the tests with `npm test`.

Watch `master` branch's [tests running in the browser](https://mozilla.github.io/nunjucks/files/tests/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](CONTRIBUTING.md).

[Contributors](https://github.com/mozilla/nunjucks/graphs/contributors)

[npm-image]: https://img.shields.io/npm/v/nunjucks.svg
[npm-url]: https://npmjs.org/package/nunjucks
[downloads-image]: https://img.shields.io/npm/dm/nunjucks.svg
[downloads-url]: https://npmjs.org/package/nunjucks
[github-actions-image]: https://img.shields.io/github/workflow/status/mozilla/nunjucks/Tests/master.svg?label=linux
[github-actions-url]: https://github.com/mozilla/nunjucks/actions
[appveyor-image]: https://img.shields.io/appveyor/ci/fdintino/nunjucks/master.svg?label=windows
[appveyor-url]: https://ci.appveyor.com/project/fdintino/nunjucks
[codecov-image]: https://img.shields.io/codecov/c/gh/mozilla/nunjucks.svg
[codecov-url]: https://codecov.io/gh/mozilla/nunjucks/branch/master

---
_Source: https://npm.io/package/nunjucks · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
