Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@putout/plugin-strict-mode

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@putout/plugin-strict-mode

putout plugin adds ability to find and remove console.log calls

  • 1.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9.2K
decreased by-1.59%
Maintainers
1
Weekly downloads
 
Created
Source

putout-plugin-remove-console NPM version Dependency Status

putout plugin adds ability to find and add/remove use strict directive.

Install

npm i @putout/plugin-remove-console

Rule

Rule strict-mode is enabled by default, to disable add to .putout.json:

{
    "rules": {
        "strict-mode/add": false,
        "strict-mode/remove": false,
    }
}

Code Example

const {readFileSync} = require('fs');
const source = readFileSync('./1.js', 'utf8');

const putout = require('putout');

console.log(source);
// outputs
`
console.log('hello');
`

const result = putout(source, {
    plugins: [
        'remove-console'
    ]
});
// returns
`
'use strict';
console.log('hello');
`

License

MIT

Keywords

FAQs

Package last updated on 09 Sep 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc