<commit_before>Clamps
======

A minimal recursive js/css minifier.

![Give 'em da clamps!](http://i.imgur.com/jfTXRQJ.jpg?1)

Usage
-----

```shell
$ node clamps.js ~/path/to/content/folder
```

Dependencies
------------

* [node-glob][1]
* [uglify-js][2]
* [clean-css][3]

[1]:https://github.com/isaacs/node-glob
[2]:http://lisperator.net/uglifyjs
[3]:https://github.com/GoalSmashers/clean-css

Also works on Node for Windows
<commit_msg>added a bit more explanation to README.md<commit_after>Clamps
======

A minimal recursive js/css minifier.

![Give 'em da clamps!](http://i.imgur.com/jfTXRQJ.jpg?1)

Usage
-----

```
$ node clamps.js ~/path/to/content/folder
```

Clamps will traverse the folder that is passed as an argument, as well as all subfolders, looking for any files that ends in either \*.css or \*.js and minifies any file found.

### Only when needed

Clamps will look for an existing \*.min.js or \*.min.css file and compare the modification time of the existing minified file against the source file, and will only re-minify if the source file has been modified more recently.

Dependencies
------------

* [node-glob][1]
* [uglify-js][2]
* [clean-css][3]

[1]:https://github.com/isaacs/node-glob
[2]:http://lisperator.net/uglifyjs
[3]:https://github.com/GoalSmashers/clean-css

Also works on Node for Windows

{'fraction_non_alphanumeric': 0.17155756207674944, 'fraction_numerical': 0.010534236267870579, 'mean_word_length': 3.6996466431095407, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6377713', 'n_tokens_mistral': 483, 'n_tokens_neox': 463, 'n_words': 133}