Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By melodic-software Verified Orgv2.0.4MITIn 1 marketplace
Normalizes line endings of files Claude writes to match each path's .gitattributes eol value, once per tool-call batch. A hook runs on its own after each batch, silently rewriting files; it needs node, jq and git on PATH.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Normalize line endings on editeol_normalizer_enabled
Normalize a written file's line endings to its .gitattributes eol value
boolean
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
line-endings, crlf, lf, gitattributes, eol-normalization, hook, eol, normalizer
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Act on files git ignoreseol_normalizer_lint_gitignored
By default the hook leaves a file the repository gitignores alone: it is not normalized, since a rewrite of an ignored file has no git checkout to undo it. Set true to act on gitignored files too. A tracked file that matches an ignore pattern is always in scope.
booleandefault false
A Claude Code plugin that normalizes the working-tree line endings of the files
Claude writes. Once per batch of tool calls, for each file a Write, Edit or
MultiEdit in the batch named, it resolves the file's .gitattributes eol=
value via git check-attr and
rewrites the file's line endings to match. Symmetric CRLF↔LF, idempotent,
best-effort, and silent: nothing it does reaches the model.
It uses your repository's own .gitattributes. It ships no policy and
imposes no rules of its own.
eol=lf is normalized CRLF→LF.eol=crlf is normalized
LF→CRLF. The hook compensates for tool writes that bypass git's checkout
smudge, and such writes happen on any platform. An LF write to an
eol=crlf path violates the repo's policy on Linux/macOS just as much as on
Windows.eol alone is not proof of text: a broad
* text=auto eol=lf rule also matches binaries. The hook mirrors
gitattributes' text handling: explicit text is trusted, -text skips,
and under text=auto the hook scans the file's start for a NUL byte, so
binary files are never rewritten.
Pointer: when working out how text, -text and text=auto decide
whether a path is text, fetch
gitattributes: text live.eol= attribute is left untouched.
There is no hardcoded extension list. Resolution is entirely
.gitattributes-driven, so narrow rules (a single eol=lf path) correctly
win over broad ones (*.txt eol=crlf).check-ignore error) treats the file as not ignored. Set
eol_normalizer_lint_gitignored=true to act on ignored files (see the Options
reference).Read or a shell command
named is left alone, and a file under .githooks/ (an installed copy) is skipped.0 and prints
nothing. It has no pre-commit entry because git add applies the same
.gitattributes to the bytes it stores: a CRLF file under eol=lf and an LF
file under eol=crlf are both committed as LF, whether or not this hook ran
(hooks/eol-git-add.test.sh pins it). The working tree is what this hook
fixes: a CRLF shell script fails to run before it is ever staged. For a repository
whose files were committed with the wrong endings, git add --renormalize and
an EditorConfig check in CI remain the gates.PATH. Every hook row runs through node hooks/exec-bash.mjs, which then
starts Bash. The plugin does not assume a Claude Code install brings Node, so without node the
hook does not launch and nothing is normalized. Pointer: when deciding whether an install
brings Node, fetch setup: Install with npm
and System requirements live.
Install Node.js.PATH. Parses the hook payload. Absent: the hook exits silently and
normalizes nothing; the bundled checker reports it. Install jq.PATH. The attribute resolution (git check-attr) and repo-root
detection depend on it. Without a git repository the hook is a quiet no-op
(nothing to normalize against, not a missing prerequisite).Rewriting uses perl when present, falling back to tr/awk otherwise, so no
extra tooling is required.
The hook itself runs on Bash 3.2+.
7-day copy clicks
npx claudepluginhub melodic-software/claude-code-plugins --plugin eol-normalizerBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground