mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-15 20:19:41 +01:00
22 lines
336 B
ObjectPascal
22 lines
336 B
ObjectPascal
{$mode objfpc}{$h+}
|
|
{$inline on}
|
|
program fpjsmin;
|
|
|
|
uses jsminifier;
|
|
|
|
|
|
begin
|
|
if ParamCount<>2 then
|
|
begin
|
|
Writeln('Usage: fpjsmin infile outfile');
|
|
halt(1);
|
|
end;
|
|
With TJSONMinifier.Create(Nil) do
|
|
try
|
|
FileHeader.Add(paramstr(1));
|
|
Execute(ParamStr(1),ParamStr(2));
|
|
finally
|
|
Free
|
|
end;
|
|
end.
|