Skip to Content
  • Website
Codsen
  • Home
  • Open Source
  • Articles
  • About

prevOpen Source→regex-is-jinja-nunjucksnext

regex-is-jinja-nunjucks4.2.0

Regular expression for detecting Jinja or Nunjucks code

Downloads per monthChangelogMIT Licenselibera manifesto
  • the top
  • Installation
  • Quick Take
  • Examples
  • API — ISJINJANUNJUC…
  • API — VERSION
  • Changelog

Installation

Quick Take

Examples

  • Recognise Jinja and Nunjucks delimiter styles
  • Reject HTML without Jinja or Nunjucks delimiters

API — isJinjaNunjucksRegex()

The main function isJinjaNunjucksRegex() is imported like this:

It’s a function which returns a RegExp object, /.../g, which you can use everywhere, for example, in RegExp.prototype.exec() or String.prototype.match().

API — version

You can import version:

Changelog

Open Changelog
↑ back to top
prev next

Copyright

All rights reserved © Roy Revelt 2026
All our open source packages are under MIT licenceopens in a new tab

Activities

🐛 See a bug? Raise an issueopens in a new tab
💘 Check out the Indiewebopens in a new tab and Libera manifestoopens in a new tab