Socket
Socket
Sign inDemoInstall

hexo-util

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-util - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

16

lib/highlight.js

@@ -1,7 +0,3 @@

var hljs = require('highlight.js');
var hljs;
hljs.configure({
classPrefix: ''
});
module.exports = function(str, options){

@@ -11,2 +7,4 @@ if (typeof str !== 'string') throw new TypeError('str must be a string!');

if (!hljs) initHighlight();
var gutter = options.hasOwnProperty('gutter') ? options.gutter : true;

@@ -54,2 +52,10 @@ var wrap = options.hasOwnProperty('wrap') ? options.wrap : true;

function initHighlight(){
hljs = require('highlight.js');
hljs.configure({
classPrefix: ''
});
}
function replaceTabs(str, tab){

@@ -56,0 +62,0 @@ return str.replace(/^\t+/, function(match){

{
"name": "hexo-util",
"version": "0.1.1",
"version": "0.1.2",
"description": "Utilities for Hexo.",

@@ -5,0 +5,0 @@ "main": "lib/index",

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