summaryrefslogtreecommitdiffstats
path: root/test/jsmin-test.c
blob: b6c4a205066a74ccb467423093a10c7ab6ad8219 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdlib.h>
#include <stdio.h>
#include "jsmin.c"

extern int main(int argc, char* argv[]) {
	if(argc <= 1) {
		printf("usage: %s source.js output.min.js\n", argv[0]);
		return 1;
	}
	minify_js(argv[1], argv[2]);
	return 0;
}