New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

beautylog

Package Overview
Dependencies
Maintainers
2
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

beautylog - npm Package Compare versions

Comparing version 2.0.4 to 2.0.6

20

index.js

@@ -191,19 +191,4 @@ #!/usr/bin/env node

BeautylogNodeCode.init = function () {
var consoleHighlight = function (code, language) {
var fs = require('fs'), path = require('path'), htmlout = require('html2console'), hljs = require('highlight.js');
var css = fs.readFileSync(path.join(__dirname, 'code.css'), 'utf8');
var result;
if (typeof language === "undefined") {
result = hljs.highlight(language, code);
}
else {
result = hljs.highlightAuto(code);
}
;
var html = result.value;
var output = htmlout.withCSS(css);
//console.log(html);
return output('<pre class="hljs">' + html + '</pre>');
};
var codeFunction = function (codeString, options) {
var hlight = require("hlight");
var codeSnippet = {

@@ -219,4 +204,3 @@ source: codeString,

if (typeof options != "undefined") {
codeSnippet.highlighted = consoleHighlight(codeSnippet.source, options.language);
console.log(codeSnippet.highlighted);
codeSnippet.highlighted = hlight(codeSnippet.source, options.language);
}

@@ -223,0 +207,0 @@ };

8

package.json
{
"name": "beautylog",
"version": "2.0.4",
"version": "2.0.6",
"description": "beautiful logging",

@@ -37,3 +37,3 @@ "main": "index.js",

"highlight.js": "^9.1.0",
"html2console": "0.0.4",
"hlight": "0.0.2",
"smartenv": "0.0.15"

@@ -44,5 +44,5 @@ },

"gulp": "^3.9.0",
"gulp-browser": "1.0.3",
"npmts": "^1.0.12"
"gulp-browser": "1.0.6",
"npmts": "^2.0.2"
}
}
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