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

cli-md

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-md - npm Package Compare versions

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)
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