strip-debug-cli
Strip console, alert, and debugger statements from JavaScript code
Last updated 2 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install strip-debug-cli 
SYNC missed versions from official npm registry.

strip-debug-cli Build Status

Strip console, alert, and debugger statements from JavaScript code

Useful for making sure you didn't leave any logging in production code.

Install

$ npm install --global strip-debug-cli

Usage

$ strip-debug --help

  Usage
    $ strip-debug <input-file> > <output-file>
    $ cat <input-file> | strip-debug > <output-file>

  Examples
    $ strip-debug src/app.js > dist/app.js
    $ cat src/app.js | strip-debug > dist/app.js

Related

License

MIT © Sindre Sorhus

Current Tags

  • 2.0.0                                ...           latest (2 years ago)

2 Versions

  • 2.0.0                                ...           2 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 3
Dependencies (3)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |