0.1.0 • Published 10 years ago

deconsole v0.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

deconsole Flattr this!experimental

Remove console.* statements from a JS source string, while preserving original formatting

Usage

deconsole

deconsole(str, [opts])

Takes a JavaScript string as input, and returns your cleaned up JavaScript in return.

You can also pass the following options:

  • range: an array with two elements, the first being the start position and the second being the end position for which to apply the input to. Each can be either a Number or an Object with row and column properties.

License

MIT. See LICENSE.md for details.