You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

console-filter

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

console-filter

browserify transform to remove calls to console methods that do not match the given filter

1.1.5
latest
Source
npmnpm
Version published
Weekly downloads
11
Maintainers
1
Weekly downloads
 
Created
Source

NPM Version Build Status

console-filter

browserify transform to remove calls to console methods that do not match the given filter

Overview

This transform will turn this:

//my-module.js
var someFunc = function () {
  console.log('some-value: here', 1);
  console.log('my-prefix: hello');
};
module.exports = someFunc;

Into this:

//my-module.js
var someFunc = function () {

  console.log('my-prefix: hello');
};
module.exports = someFunc;

when configured with a filter like my-prefix.

var console-filter = require( 'console-filter' ).configure({
  keep: 'my-prefix'
});

Install

npm i --save-dev console-filter

Usage

var console-filter = require( 'console-filter' ).configure({
  keep: 'my-prefix'
});

var b = browserify();
b.add('./my-module');
b.transform( console-filter );
b.bundle().pipe(process.stdout);

Keywords

console filter

FAQs

Package last updated on 19 Jul 2015

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