Skip to content

hellomathieu/walc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Walc

Warning, Alert, Log, Console ect...

Removes console or alert functions in your scripts.

Install

$ npm install walc

Usage

var walc = require('walc'),
    w    = walc({
            path: './js/*.js', 
            dest: './bin/',
            methods: {alert: 'remove', console: 'comment'}
          })
w.run()

Options

  • 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 or alert for keys, and values has 3 possibilities : remove, comment or ignore (default).

Notes

This script ignores console and alert already commented.

About

Removes 'console' or 'alert' function in your scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published