@lenml/apply_edits
v1.2.0
Published
A CLI tool for batch file editing with SEARCH/REPLACE and MATCH/REPLACE patterns, supporting atomic transactions and cross-platform compatibility. Designed for AI coding assistants like Codex.
Maintainers
Readme
@lenml/apply_edits
CLI tool for batch file editing with search/replace patterns. Atomic writes (temp file + rename), encoding auto-detection, trimmed line matching.
Windows PowerShell Note: PowerShell 5 (
powershell.exe) defaults to UTF-16 LE when piping, which breaks encoding. Upgrade to PowerShell 7+ (pwsh.exe).
Install
npm install -g @lenml/apply_editsUsage
See SKILL.md for full documentation.
apply-edits --workdir . src/file.ts "old code" "new code"Install as Agent Skill
install it: https://raw.githubusercontent.com/lenML/apply_edits_tool/refs/heads/main/skill/SKILL.mdinstall it: https://cdn.jsdelivr.net/npm/@lenml/apply_edits/skill/SKILL.mdinstall it: https://unpkg.com/@lenml/apply_edits/skill/SKILL.md