deconsole
v0.1.0
Published
Remove console.* statements from a JS source string, while preserving original formatting
Downloads
2
Maintainers
Readme
deconsole
Remove console.*
statements from a JS source string, while preserving original formatting
Usage
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 aNumber
or anObject
withrow
andcolumn
properties.
License
MIT. See LICENSE.md for details.