uncomment-cli-pmb
v1.0.0
Published
Replace the old Rust-less uncomment-cli.
Maintainers
Readme
uncomment-cli-pmb
Replace the old Rust-less uncomment-cli.
Motivation
tl;dr: It seems like the old uncomment-cli package from 2017
has vanished from npm, and is now replaced by an incompatible Rust-based
alternative created in summer of 2025.
I was unable to find any older version on npm.
Long version: See motivation.md.
Limitations
Currently, it's not very clear what counts as a comment (see tests).
This is a flaw inherited from the strip-comments module that I use here.
In future versions I might add more fine-grained control over what is considered a comment for which file type, guessed from filename extension, and an option to overwrite that.
Usage
uncomment-cli index.js >tmp.nocomment.js
colordiff -U 1 index.js tmp.nocomment.js
colordiff -sU 1 README.md <(uncomment-cli README.md)Known issues
- See chapter "Limitations" above.
- Needs more/better tests and docs.
License
ISC
