aboutsummaryrefslogtreecommitdiff
path: root/jsmin/__main__.py
blob: 58da2e2221403b6489d5cd337fc0d17317b8a222 (plain)
1
2
3
4
5
6
7
8
9
10
import sys, os, glob
from jsmin import JavascriptMinify

for f in sys.argv[1:]:
    with open(f, 'r') as js:
        minifier = JavascriptMinify(js, sys.stdout)
        minifier.minify()
    sys.stdout.write('\n')