npm / shell-quote
shell-quote
What changed in shell-quote 1, from its official release notes, upgrade guides and advisories. Also covers @types/shell-quote. Sources checked 2026-11-30.
1 breaking2 security8 new APIs and options2 behavior and defaults1 tooling11 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initshell-quote 125 changes
Breaking changes 1
Rejects line terminators in tokens after a comment.
Security 2
Token finalization now takes linear time, addressing GHSA-395f-4hp3-45gv.
shell-quote quote() does not escape newlines in object .op values
New APIs and options 8
parse now supports here-documents.
parse now supports the case test-next terminator.
parse now supports the case fall-through terminator.
parse now supports redirecting output despite noclobber.
parse now supports opening a file for reading and writing.
parse now supports redirecting stdout and stderr.
parse now supports appending stdout and stderr.
Adds the opt-in splitUnquoted option for shell field-splitting of unquoted expansions.
Behavior and default changes 2
parse now supports tab-stripping here-documents.
parse now supports output process substitution.
Tooling 1
Type definitions have been added for shell-quote.
Fixes and other changes 11
Supports parsing bash ANSI-C quoting ($'...').
Preserves text after special shell parameters.
An escaped backslash no longer escapes the character after it.
Treats $_name as a variable name rather than $_ followed by text.
Preserves ! in arguments that also contain a single quote.
Preserves empty glob patterns.
Escapes ~ in glob patterns to prevent shell tilde expansion.
Matches nested ${...} braces so nested parameter expansion is consumed as one substitution.
A backslash inside single quotes no longer escapes the closing quote.
Leading
~is escaped to prevent shell tilde-expansion.The quote function now validates object-token shapes.