Warning, Alert, Log, Console ect...
Removes console
or alert
functions in your scripts.
$ npm install walc
var walc = require('walc'),
w = walc({
path: './js/*.js',
dest: './bin/',
methods: {alert: 'remove', console: 'comment'}
})
w.run()
-
path
: String or Array. ex :"path/to/directory/*.js"
or"path/to/directory/script.js"
or["path/to/directory/*.js"]
or["path/to/directory/script.js"]
-
dest
: String. ex :"path/to/export/destination"
, default :"dest/"
-
methods
: Object.console
oralert
for keys, and values has 3 possibilities :remove
,comment
orignore
(default).
This script ignores console
and alert
already commented.