Comparing version 1.1.0 to 1.2.0
15
cli.js
@@ -6,13 +6,12 @@ #!/usr/bin/env node | ||
var md = require('./') | ||
var filepath = process.argv[2] | ||
var readStream | ||
if (filepath) { | ||
readStream = fs.createReadStream(filepath) | ||
} else { | ||
readStream = process.stdin | ||
} | ||
var input = process.argv.length > 2 | ||
? fs.createReadStream(process.argv[2]) | ||
: process.stdin | ||
readStream.pipe(concat(function (markdown) { | ||
// Force colors for chalk. | ||
process.argv.push('--color') | ||
input.pipe(concat(function (markdown) { | ||
process.stdout.write(md(markdown.toString())) | ||
})) |
{ | ||
"name": "cli-md", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Markdown for your terminal", | ||
@@ -27,3 +27,2 @@ "main": "index.js", | ||
"dependencies": { | ||
"cardinal": "^0.4.4", | ||
"chalk": "^0.5.1", | ||
@@ -30,0 +29,0 @@ "concat-stream": "^1.4.6", |
@@ -6,4 +6,4 @@ # cli-md | ||
It is inspired by and similar to [msee](https://www.npmjs.org/package/msee), | ||
but the implementation is using [marked-terminal](https://github.com/mikaelbr/marked-terminal) | ||
It is inspired by and similar to [msee](https://www.npmjs.org/package/msee), | ||
but the implementation is using [marked-terminal](https://github.com/mikaelbr/marked-terminal) | ||
as a marked renderer internally. | ||
@@ -20,4 +20,5 @@ | ||
$ cli-md < Readme.md | ||
$ cli-md Readme.md | ||
``` | ||
Which would look something like this: | ||
![Photo](example.png) | ||
![Photo](example.png) |
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
4
23
34
- Removedcardinal@^0.4.4
- Removedcardinal@0.4.4(transitive)
- Removedesprima@1.0.4(transitive)
- Removedredeyed@0.4.4(transitive)