NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #1709 most downloaded on npm
Strip comments and string literals from JavaScript code
Last release 2 months ago
30 Jul 2026
Ships fairly regularly
a new release about every 3 months
Most releases are documented
notes for 14 of 17 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
17 releases · first in 2022
One column per quarter.
ESM-only release, migrate to tsdown - by @antfu and Claude Opus 5 (1M context) (2f6be)
Avoid creating tokens list on stripLiteral - by @Eazash and @antfu in #10 (552a5)
Make default package type to module - by @antfu (07001)
Nothing published for this version
Handle unclosed string literal for multiline vue component props - by @hi-ogawa in #7 (a39ba)
Use js-tokens instead of acorn - by @sheremet-va and @antfu in #6 (bad0e)
Custom fill char - by @antfu (e1b3f)
Support filter option - by @antfu (58951)
Improve regex, update test - by @antfu (2cd71)
Improve regex match, close #4 - by @antfu in #4 (2a35a)
No changes, just bumping the version to mark as stable.
No changes, just bumping the version to mark as stable.
SinglelineCommentsRE incorrect matching - by @YIngChenIt in https://github.com/antfu/strip-literal/issues/3
Introduce createIsLiteralPositionAcorn function - by @sapphi-red in https://github.com/antfu/strip-literal/issues/2
createIsLiteralPositionAcorn function - by @sapphi-red in https://github.com/antfu/strip-literal/issues/2Introduce strip using regex as fallback `#1`
### Features * introduce forgiving option
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →