New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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 0.1.0 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": {

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