Comparing version 0.1.1 to 0.1.2
@@ -12,2 +12,3 @@ msee | ||
msee <file> | less | ||
cat <file> | msee | ||
@@ -14,0 +15,0 @@ ## API |
0.1.0 / 2013-12-25 (draft) | ||
0.1.2 / 2015-10-14 | ||
================== | ||
* Update cardinal to latest version for ES6 support #14 | ||
* add reading from stdin #11 | ||
0.1.0 / 2013-12-25 | ||
================== | ||
* separated *Help.md* and *README.md* | ||
@@ -6,0 +12,0 @@ * added `inline` parsing |
var msee = require('./msee'); | ||
var nopt = require('nopt'); | ||
var path = require('path'); | ||
var tty = require('tty'); | ||
@@ -39,2 +40,12 @@ function showHelp() { | ||
} | ||
else if (!tty.isatty()) { | ||
var text = ''; | ||
process.stdin.on('data', function(chunk) { | ||
text += chunk; | ||
}); | ||
process.stdin.on('end', function() { | ||
var out = msee.parse(text); | ||
console.log(out); | ||
}); | ||
} | ||
else { | ||
@@ -41,0 +52,0 @@ showHelp(); |
{ | ||
"name": "msee", | ||
"version": "0.1.1", | ||
"description": "Msee is a command-line tool to read Markdown file in your terminal, and it's a library help your command-line software to output readable markdown content.", | ||
"main": "./lib/msee.js", | ||
"bin": "./bin/msee", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/firede/msee.git" | ||
}, | ||
"dependencies": { | ||
"chalk": "~0.4.0", | ||
"cardinal": "~0.4.3", | ||
"marked": "~0.3.0", | ||
"nopt": "~2.1.1", | ||
"xtend": "~2.1.1" | ||
}, | ||
"keywords": [ | ||
"markdown", | ||
"terminal", | ||
"reader", | ||
"console", | ||
"shell", | ||
"colors", | ||
"highlight" | ||
], | ||
"author": "Firede <firede@firede.us>", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/firede/msee/issues" | ||
} | ||
} | ||
"name": "msee", | ||
"version": "0.1.2", | ||
"description": "Msee is a command-line tool to read Markdown file in your terminal, and it's a library help your command-line software to output readable markdown content.", | ||
"main": "./lib/msee.js", | ||
"bin": "./bin/msee", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/firede/msee.git" | ||
}, | ||
"dependencies": { | ||
"cardinal": "^0.5.0", | ||
"chalk": "~0.4.0", | ||
"marked": "~0.3.0", | ||
"nopt": "~2.1.1", | ||
"xtend": "~2.1.1" | ||
}, | ||
"keywords": [ | ||
"markdown", | ||
"terminal", | ||
"reader", | ||
"console", | ||
"shell", | ||
"colors", | ||
"highlight" | ||
], | ||
"author": "Firede <firede@firede.us>", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/firede/msee/issues" | ||
} | ||
} |
@@ -22,2 +22,3 @@ msee | ||
msee <file> | less | ||
cat <file> | msee | ||
@@ -24,0 +25,0 @@ ## API |
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
12011
331
47
+ Addedcardinal@0.5.0(transitive)
+ Addedesprima-fb@12001.1.0-dev-harmony-fb(transitive)
+ Addedredeyed@0.5.0(transitive)
- Removedcardinal@0.4.4(transitive)
- Removedesprima@1.0.4(transitive)
- Removedredeyed@0.4.4(transitive)
Updatedcardinal@^0.5.0