You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

hexo-util

Package Overview
Dependencies
Maintainers
8
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0-rc2 to 1.0.0-rc3

highlight_alias.json

4

lib/highlight.js

@@ -39,4 +39,4 @@ 'use strict';

if (tab) line = replaceTabs(line, tab);
numbers += `<span class="line">${firstLine + i}</span><br>`;
content += formatLine(line, firstLine + i, mark, options);
numbers += `<span class="line">${Number(firstLine) + i}</span><br>`;
content += formatLine(line, Number(firstLine) + i, mark, options);
}

@@ -43,0 +43,0 @@

{
"name": "hexo-util",
"version": "1.0.0-rc2",
"version": "1.0.0-rc3",
"description": "Utilities for Hexo.",

@@ -10,3 +10,3 @@ "main": "lib/index",

"test-cov": "nyc npm run test",
"build:highlight": "node scripts/build_highlight_alias.js > highlight_alias.json",
"build:highlight": "node scripts/build_highlight_alias.js",
"prepare": "npm run build:highlight"

@@ -20,3 +20,4 @@ },

"lib/",
"scripts/"
"scripts/",
"highlight_alias.json"
],

@@ -23,0 +24,0 @@ "repository": "hexojs/hexo-util",

# hexo-util
[![Build Status](https://travis-ci.org/hexojs/hexo-util.svg?branch=master)](https://travis-ci.org/hexojs/hexo-util) [![NPM version](https://badge.fury.io/js/hexo-util.svg)](http://badge.fury.io/js/hexo-util) [![Coverage Status](https://coveralls.io/repos/hexojs/hexo-util/badge.svg?branch=master&service=github)](https://coveralls.io/github/hexojs/hexo-util?branch=master) [![dependencies Status](https://david-dm.org/hexojs/hexo-util/status.svg)](https://david-dm.org/hexojs/hexo-util) [![devDependencies Status](https://david-dm.org/hexojs/hexo-util/dev-status.svg)](https://david-dm.org/hexojs/hexo-util?type=dev)
[![Build Status](https://travis-ci.org/hexojs/hexo-util.svg?branch=master)](https://travis-ci.org/hexojs/hexo-util)
[![NPM version](https://badge.fury.io/js/hexo-util.svg)](https://www.npmjs.com/package/hexo-util)
[![Coverage Status](https://coveralls.io/repos/hexojs/hexo-util/badge.svg?branch=master&service=github)](https://coveralls.io/github/hexojs/hexo-util?branch=master)
[![dependencies Status](https://david-dm.org/hexojs/hexo-util/status.svg)](https://david-dm.org/hexojs/hexo-util)
[![devDependencies Status](https://david-dm.org/hexojs/hexo-util/dev-status.svg)](https://david-dm.org/hexojs/hexo-util?type=dev)

@@ -5,0 +9,0 @@ Utilities for [Hexo].

@@ -5,2 +5,3 @@ 'use strict';

var languages = hljs.listLanguages();
const fs = require('fs');

@@ -25,2 +26,7 @@ var result = {

console.log(JSON.stringify(result));
const stream = fs.createWriteStream('highlight_alias.json');
stream.write(JSON.stringify(result));
stream.on('end', () => {
stream.end();
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc