deconsole

0.1.0 • Public • Published

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.

Package Sidebar

Install

npm i deconsole

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • hughsk