Comparing version 0.1.1 to 0.1.2
@@ -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:** |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35224
27
891
123
2
11