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", |
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
64996
36
1