Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hicat

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hicat - npm Package Compare versions

Comparing version 0.6.1 to 0.6.2

4

History.md

@@ -0,1 +1,5 @@

## v0.6.2 - November 10, 2014
* Add *repository* field to `package.json`. No functional changes.
## v0.6.1 - August 4, 2014

@@ -2,0 +6,0 @@

@@ -5,3 +5,7 @@ {

"license": "MIT",
"version": "0.6.1",
"version": "0.6.2",
"repository": {
"type": "git",
"url": "http://github.com/rstacruz/hicat.git"
},
"description": "Command-line syntax highlighter.",

@@ -8,0 +12,0 @@ "main": "index.js",

8

test/test.js

@@ -45,3 +45,3 @@ require('./setup');

beforeEach(function () {
input = 'var x = 2345 + "hi"; /*yo*/';
input = 'var x = 2345 + "hi"; /*yo*/ window.document.x = function($){};';
out = hicat(input);

@@ -52,3 +52,3 @@ str = out.ansi;

it('produces .language', function () {
expect(out.language).be.eql('haxe');
expect(out.language).be.eql('javascript');
});

@@ -70,3 +70,3 @@

it('highlights numbers', function () {
var fragment = hicat.colorize('2345', hicat.color('number', 'haxe'));
var fragment = hicat.colorize('2345', hicat.color('number', 'javascript'));
expect(str).include(str);

@@ -76,3 +76,3 @@ });

it('highlights comments', function () {
var fragment = hicat.colorize('/*yo*/', hicat.color('comment', 'haxe'));
var fragment = hicat.colorize('/*yo*/', hicat.color('comment', 'javascript'));
expect(str).include(fragment);

@@ -79,0 +79,0 @@ });

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