Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

babel-plugin-transform-remove-console-seb

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

babel-plugin-transform-remove-console-seb

Remove all console.* calls.

latest
Source
npmnpm
Version
6.8.6
Version published
Maintainers
1
Created
Source

babel-plugin-transform-remove-console

This plugin removes all console.* calls.

Example

In

console.log("foo");
console.error("bar");

Out

Installation

npm install babel-plugin-transform-remove-console

Usage

.babelrc

// without options
{
  "plugins": ["transform-remove-console"]
}
// with options
{
  "plugins": [ ["transform-remove-console", { "exclude": [ "error", "warn"] }] ]
}

Via CLI

babel --plugins transform-remove-console script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["transform-remove-console"]
});

Options

  • exclude - An array of console methods to exclude from removal.

Keywords

babel-plugin

FAQs

Package last updated on 02 Oct 2017

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