Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js minifier api

curl -X POST -s --data-urlencode 'input=console.log( 1 );' https://www.toptal.com/developers/javascript-minifier/raw
curl -X POST -s --data-urlencode 'input@main.js' https://www.toptal.com/developers/javascript-minifier/raw > main.min.js

// Many files
for file in $(ls); do curl -X POST -s --data-urlencode "input@$file" https://www.toptal.com/developers/javascript-minifier/raw > "$file.min.js"; done
Source by www.toptal.com #
 
PREVIOUS NEXT
Tagged: #js #minifier #api
ADD COMMENT
Topic
Name
3+9 =