New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

delconsole

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

delconsole

DelConsole is a command-line tool for Node.js that recursively removes all console.log() statements from JavaScript, TypeScript, JSX, and TSX files in a specified directory, or the current directory if none is specified. This helps in cleaning up debug lo

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
2
-71.43%
Maintainers
1
Weekly downloads
 
Created
Source

DelConsole

DelConsole is a powerful Node.js command-line interface (CLI) tool designed to streamline the process of removing console.log() statements from JavaScript, TypeScript, JSX, and TSX files within a target project directory. Whether you're preparing for production or simply aiming to clean up your development environment, DelConsole offers a fast and efficient solution.

Features

  • Cross-Language Support: Automatically detects and processes JavaScript, TypeScript, JSX, and TSX files.
  • Recursive Processing: Traverses through directories recursively to find and remove console.log() statements across your entire project.
  • Verbose Mode: Provides detailed output on what changes are being made, ensuring transparency and control over the removal process.

Installation

To install DelConsole globally on your system, run:

npm install -g delconsole `

Usage

After installing, you can start using DelConsole right away. Here are some basic commands to get you started:

Running on a Specific Project Folder

To remove all console.log() statements from a specific folder, use the following syntax:

delconsole -path-your project folder

Replace path-to-your-project-folder with the actual path to the folder you wish to process.

Running Within the Current Project Folder

To remove all console.log() statements from the current directory and its subdirectories, simply run:

delconsole

Running on the fly

TO use delconsole without installing it,you can run

npx delconsole

Contributing

Contributions to DelConsole are welcome. Whether it's adding new features, improving existing ones, or fixing bugs, please feel free to submit pull requests or open issues on my GitHub repository

License

DelConsole is released under the MIT license. See the LICENSE file for details.

Keywords

remove-console

FAQs

Package last updated on 13 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts