Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hakobera/uglify-me
JavaScript uglify server
https://github.com/hakobera/uglify-me
Last synced: about 1 month ago
JSON representation
JavaScript uglify server
- Host: GitHub
- URL: https://github.com/hakobera/uglify-me
- Owner: hakobera
- Created: 2012-01-25T10:57:59.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-05-29T08:11:49.000Z (over 12 years ago)
- Last Synced: 2024-04-13T22:12:24.725Z (8 months ago)
- Language: JavaScript
- Homepage: http://uglifyme.herokuapp.com/
- Size: 144 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
uglify-me
=========This applicaion is JavaScript uglify server for inhouse usage
Prerequisites
-------------You'll need to install the following software to run this application.
- Node.js (>= 0.6.0)
Usage
-----$ git clone https://github.com/hakobera/uglify-me.git
$ cd uglify-me
$ npm install
$ node app.jsUsage from curl
---------------You can use this application from `curl`.
Make shell script like below named `uglify.sh`.#!/bin/sh
CURRENT=$(cd $(dirname $0) && pwd)files=''
num=1echo "Find uglify target files in $CURRENT/$1"
for JS in `ls $CURRENT/$1/*.js`
do
files="$files -F f$num=@$JS"
num=`expr $num + 1`
echo "found $JS"
doneecho "curl $files http://localhost:3000/uglify"
curl $files http://localhost:3000/uglify > $2If your JavaScript source files to uglify in `javascripts` directory, then execute below.
uglify.sh javascripts output.js