deepakpatil84/jstype-minify ? reverse-engineered prompt
Reverse engineered prompt
Build me a small Python tool that minifies JavaScript files from the command line.
I want to be able to run it like python Minify.py input.js output.min.js and have it read the source file, shrink it into a minified version, and write the result to the output file. It should also detect unused identifiers and flag global or undeclared identifiers while it processes the code.
Keep the project simple and easy to run locally. If you need to check current docs for the parser or grammar approach, go ahead and look them up online. I’d like the code to be clear enough that someone can understand how it works without a lot of extra setup, and it should include a small sample JavaScript file for testing.
Are you gonna build this?
make sure you review the code using coderabbit