Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including code-cleaner with all npm packages installed. Try it out:

var codeCleaner = require("code-cleaner")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

code-cleaner v1.2.2

This package allows you to clean all your code from consoles, comments with specifying directories or files to clean


Clean code files on the go with this simple command.


  • node 8+
  • npm 5.3.0


$ npm install -g code-cleaner


This component will work well with files of the following extensions

  • html
  • xhtml
  • xml
  • css
  • scss
  • less
  • js
  • jsx
  • ts
  • vue
  • java

if you want to perform cleaning on file

$ code-cleaner <file_with_its_path>

If you want to clean files in a directory at once

$ cd <directory>
$ code-cleaner .


Open for contribution/pull request

  • Include more types of files to clean e.g. (.py, .bash, .scala)
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free