<commit_before>### Grunt-Remove-Logging (0.0.1)
--

[![GitHub version][version_png]][version_url] [![Dependency Status][dm_png]][dm_url]

[version_png]: https://badge.fury.io/gh/davidlinse%2Fgrunt-remove-logging.png
[version_url]: http://badge.fury.io/gh/davidlinse%2Fgrunt-remove-logging
[dm_png]: https://david-dm.org/davidlinse/grunt-remove-logging.png
[dm_url]: https://david-dm.org/davidlinse/grunt-remove-logging

--

Removes `console` related statements from JavaScript code by AST modification and code re-generation.

_Note:_
This module is at verry early stage of development and currently not a `npm` module.

In the current version it can be used as `pre-minify` task when all code is compressed/mini-/uglified anyway afterwards.

Code is re-generated by `escodegen` module so _ALL_ custom formatting is lost in the process.

A re-formatting of generated code is _left out by intend_ to avoid possible 'noise' about it's style.
The generated code is formated with the _default_ `format` options of `escodegen`.


#### Usage

```
$ git clone grunt-remove-logging
$ cd /to/your/project
$ npm install /path/to/grunt-remove-logging --save-dev
```

```
// Gruntfile.js
grunt.initConfig({
    'remove-logging': {
        files: {
            src: ['lib/**/*.js'],
            dest: 'dist/'
        }
    }
});

// as long as not an 'npm' module
// and/or during development
//
// grunt.loadTasks('./tasks');

// use it
grunt.registerTask('default', ['remove-logging', 'concat', 'uglify' /* more here */]);
```

```
#!/bin/sh
$ grunt remove-logging
```

#### Dependencies

* lodash `(2.4.1)`
* esprima `(1.0.4)`
* escodegen (`1.2.0)`
* estraverse `(1.5.1)`
* esmangle `(1.0.0)`


#### Roadmap

* provide some tests
* options support for involved modules (`escodegen`, `esmangle`)
* options to exclude expressions (e.g `try-catch blocks`)


#### Licence

(The MIT License)

Copyright (c) 2013 <NAME> <<EMAIL>>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
<commit_msg>chore(readme): update copyright year in license<commit_after>### Grunt-Remove-Logging (0.0.1)
--

[![GitHub version][version_png]][version_url] [![Dependency Status][dm_png]][dm_url]

[version_png]: https://badge.fury.io/gh/davidlinse%2Fgrunt-remove-logging.png
[version_url]: http://badge.fury.io/gh/davidlinse%2Fgrunt-remove-logging
[dm_png]: https://david-dm.org/davidlinse/grunt-remove-logging.png
[dm_url]: https://david-dm.org/davidlinse/grunt-remove-logging

--

Removes `console` related statements from JavaScript code by AST modification and code re-generation.

_Note:_
This module is at verry early stage of development and currently not a `npm` module.

In the current version it can be used as `pre-minify` task when all code is compressed/mini-/uglified anyway afterwards.

Code is re-generated by `escodegen` module so _ALL_ custom formatting is lost in the process.

A re-formatting of generated code is _left out by intend_ to avoid possible 'noise' about it's style.
The generated code is formated with the _default_ `format` options of `escodegen`.


#### Usage

```
$ git clone grunt-remove-logging
$ cd /to/your/project
$ npm install /path/to/grunt-remove-logging --save-dev
```

```
// Gruntfile.js
grunt.initConfig({
    'remove-logging': {
        files: {
            src: ['lib/**/*.js'],
            dest: 'dist/'
        }
    }
});

// as long as not an 'npm' module
// and/or during development
//
// grunt.loadTasks('./tasks');

// use it
grunt.registerTask('default', ['remove-logging', 'concat', 'uglify' /* more here */]);
```

```
#!/bin/sh
$ grunt remove-logging
```

#### Dependencies

* lodash `(2.4.1)`
* esprima `(1.0.4)`
* escodegen (`1.2.0)`
* estraverse `(1.5.1)`
* esmangle `(1.0.0)`


#### Roadmap

* provide some tests
* options support for involved modules (`escodegen`, `esmangle`)
* options to exclude expressions (e.g `try-catch blocks`)


#### Licence

(The MIT License)

Copyright (c) 2013 - 2014 <NAME> <<EMAIL>>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

{'fraction_non_alphanumeric': 0.13195136535778354, 'fraction_numerical': 0.01036475981662348, 'mean_word_length': 4.04321608040201, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 6, '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': '6377517', 'n_tokens_mistral': 1633, 'n_tokens_neox': 1568, 'n_words': 546}