Socket
Socket
Sign inDemoInstall

normalize-log

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

normalize-log - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

11

index.js
require('colors')
var chalk = require('chalk')
var lengthOf = require('string-length')

@@ -13,3 +14,3 @@ var maxlength = 10

description = name
name = 'error'.red
name = chalk.red('error')
}

@@ -25,7 +26,1 @@ console.error(pad(name) + ' ' + description)

}
// length of a string without color codes
function lengthOf(string) {
string = string.replace(/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]/g, '')
return Buffer.byteLength(string)
}
{
"name": "normalize-log",
"description": "nlz(1) logging with colors",
"version": "0.1.0",
"version": "0.2.0",
"author": {

@@ -14,4 +14,5 @@ "name": "Jonathan Ong",

"dependencies": {
"colors": "0"
"chalk": "0",
"string-length": "0"
}
}
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