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

j_utils

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

j_utils - npm Package Compare versions

Comparing version

to
0.2.0

14

j_syslog_2_json.js

@@ -38,10 +38,12 @@ #!/usr/bin/env node

function printBlock(item) {
var isMatch = orOptionsFilter(item) && andOptionsFilter(item)
var print_color = isMatch ? 'prompt' : 'silly'
var log = item.slice(0,item.indexOf('{') - 1)
var item = item.slice(item.indexOf('{'))
var toPrint =beautify(JSON.parse(item),null, 3, 100 )
console.log( toPrint[print_color] )
try{
var log = item.slice(0,item.indexOf('{') - 1)
var item = item.slice(item.indexOf('{'))
var toPrint =beautify(JSON.parse(item),null, 3, 100 )
console.log( toPrint[print_color] )
}catch(e){
console.log( item[print_color] )
}
// if(body && body[0] === '{'){

@@ -48,0 +50,0 @@ // console.log(beautify(JSON.parse(body),null, 2, 100)[print_color])

{
"name": "j_utils",
"version": "0.1.0",
"version": "0.2.0",
"description": "",

@@ -5,0 +5,0 @@ "repository": {