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.0.0 to 1.1.0

14

cli.js

@@ -6,5 +6,13 @@ #!/usr/bin/env node

var md = require('./')
var filepath = process.argv[2]
var readStream
process.stdin.pipe(concat(function (markdown) {
console.log(md(markdown.toString()))
}))
if (filepath) {
readStream = fs.createReadStream(filepath)
} else {
readStream = process.stdin
}
readStream.pipe(concat(function (markdown) {
process.stdout.write(md(markdown.toString()))
}))
var md = require('./index.js')
var fs = require('fs')
var example = require('markdown-cheatsheet')
console.log(md(example()))
console.log(md(example()))

@@ -23,2 +23,1 @@ var marked = require('marked')

module.exports = marked
{
"name": "cli-md",
"version": "1.0.0",
"version": "1.1.0",
"description": "Markdown for your terminal",

@@ -5,0 +5,0 @@ "main": "index.js",

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