Socket
Socket
Sign inDemoInstall

console-log-level

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

console-log-level - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

5

index.js

@@ -6,2 +6,3 @@ 'use strict'

var levels = ['trace', 'debug', 'info', 'warn', 'error', 'fatal']
var noop = function () {}

@@ -19,5 +20,5 @@ module.exports = function (opts) {

levels.forEach(function (level) {
logger[level] = function () {
if (!shouldLog(level)) return
logger[level] = shouldLog(level) ? log : noop
function log () {
var prefix = opts.prefix

@@ -24,0 +25,0 @@ var normalizedLevel

6

package.json
{
"name": "console-log-level",
"version": "1.2.0",
"version": "1.2.1",
"description": "The most simple logger imaginable",

@@ -34,5 +34,5 @@ "main": "index.js",

"coordinates": [
55.6665764,
12.5798836
60.2016461,
24.9573858
]
}
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