Python 3 SlimIt Library Script to Compress or Minify Javascript Source Code

Python 3 SlimIt Library Script to Compress or Minify Javascript Source Code

Python 3 SlimIt Library Script to Compress or Minify Javascript Source Code

from slimit import minify
text = """
var a = function( obj ) {
         for ( var name in obj ) {
                 return false;
         }
         return true;
};
"""
print(minify(text, mangle=True))
Share on:

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Comment