macOS
brew install djlintlocal Homebrew formula metadata
安装
brew install djlintlocal Homebrew formula metadata
nix profile install nixpkgs#djlintnixpkgs package indexes · pkgs/by-name/dj/djlint/package.nix · 来源: api.github.com
概览
Lint & Format HTML Templates
历史
djLint is an HTML template linter and formatter for Django, Jinja, Nunjucks, Twig, Handlebars, Mustache, Go templates, Angular, and related template syntaxes. It fills the gap between generic HTML tooling and framework-aware template code that contains tags ordinary HTML formatters do not understand.
The official repository was created in July 2021 and describes djLint as a formatter and linter for HTML templates. The README frames the project as a response to template files being left out while many programming languages already had standard formatters and linters.
The project grew around both formatting and linting modes: users can lint, check formatting, reformat, run pre-commit hooks, and configure behavior through `pyproject.toml`, `djlint.toml`, `.djlint.toml`, or `.djlintrc`. The official docs and README also show multilingual documentation and integrations as part of the public surface.
djLint adoption is visible in its packaging spread: the official README documents PyPI, Homebrew, npm experimental installation, and pre-commit hooks. That mix fits web teams that want the same tool in Python environments, JavaScript-heavy repositories, and system package managers.
The official release metadata shows continued activity through the mid-2020s, including the 1.36 series in 2024 and the 1.39 series in 2026. The project also advertises downloads and community links from the README, signaling that it had moved beyond a one-off formatter experiment.
Typical use is `djlint . --lint`, `djlint . --check`, or `djlint . --reformat`, often with an explicit template extension such as `html.j2`. Teams put options in project config files and use pre-commit hooks for automatic reformatting and lint checks.
djLint matters to package nerds because it packages a messy cross-template problem into one CLI while still fitting Python, npm, Homebrew, and pre-commit ecosystems. It also sits next to smaller tools like DjHTML, making the template-formatting space unusually visible in package-manager catalogs.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
pyproject.tomldjlint.toml.djlint.toml.djlintrc可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
djlint | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:djlint |
|---|---|
| 版本 | 1.42.3 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/djlint |
| 主页 | https://djlint.com |
| 仓库 | https://github.com/djlint/djLint |
| 上游文档 | https://djlint.com/docs/configuration |
| 许可证 | GPL-3.0-or-later |
| 源码归档 | https://files.pythonhosted.org/packages/bf/43/ecd8cf81a5bf2f9a402e6149dfbe0528c1786307fda873fa326c4ba5fe2b/djlint-1.42.3.tar.gz |
| 最后更新 | 2026-07-24T23:52:53Z |
| Pulse | updated |
| 依赖 | libyaml, python@3.14 |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | djlint |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
djlint
nix profile install nixpkgs#djlint来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.