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

cardinal

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cardinal - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

bin/cdl.js

8

examples/highlight-self-hide-semicolons.js

@@ -14,6 +14,10 @@ /*

var highlighted = cardinal.highlightFileSync(__filename, hideSemicolonsTheme);
console.log(highlighted);
try {
var highlighted = cardinal.highlightFileSync(__filename, hideSemicolonsTheme);
console.log(highlighted);
} catch (err) {
console.error(err);
}
}
highlight();
{
"name": "cardinal",
"version": "0.1.1",
"version": "0.1.2",
"description": "Syntax highlights JavaScript code with ANSI colors to be printed to the terminal.",

@@ -11,3 +11,3 @@ "main": "cardinal.js",

"bin": {
"cardinal": "./bin/cardinal.js"
"cdl": "./bin/cdl.js"
},

@@ -34,4 +34,5 @@ "repository": {

"devDependencies": {
"tap": "~0.3.1"
"tap": "~0.3.1",
"readdirp": "~0.2.1"
}
}
# cardinal [![Build Status](https://secure.travis-ci.org/thlorenz/cardinal.png)](http://travis-ci.org/thlorenz/cardinal)
**car·di·nal** *(kärdn-l, kärdnl)* - A North American finch (Cardinalis cardinalis) having a crested head, a short thick
bill, and bright red plumage
**car·di·nal** *(kärdn-l, kärdnl)* - crested thick-billed North American finch having bright red plumage in the male

@@ -25,3 +24,3 @@ ```javascript

- theming support, see [custom color themes](https://github.com/thlorenz/cardinal/tree/master/themes)
- API and command line interface
- API and command line interface (`cdl`)
- `.cardinalrc` config to customize settings

@@ -57,2 +56,6 @@ - supports UNIX pipes

**Note:**
When installed globally, cardinal exposes itself as the `cdl` command.
## Commandline

@@ -62,7 +65,7 @@

cardinal file.js
cdl file.js
### As part of a UNIX pipe
cat file.js | grep console | cardinal
cat file.js | grep console | cdl

@@ -69,0 +72,0 @@ **Note:**

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