markdown-it
Advanced tools
Comparing version 8.2.1 to 8.2.2
@@ -45,2 +45,7 @@ #!/usr/bin/env node | ||
cli.addArgument([ '-o', '--output' ], { | ||
help: 'File to write', | ||
defaultValue: '-' | ||
}); | ||
var options = cli.parseArgs(); | ||
@@ -103,3 +108,8 @@ | ||
process.stdout.write(output); | ||
if (options.output === '-') { | ||
// write to stdout | ||
process.stdout.write(output); | ||
} else { | ||
fs.writeFileSync(options.output, output); | ||
} | ||
}); |
@@ -0,1 +1,7 @@ | ||
8.2.2 / 2016-12-15 | ||
------------------ | ||
- Add `-o` / `--output` option to CLI, #312. | ||
8.2.1 / 2016-12-02 | ||
@@ -2,0 +8,0 @@ ------------------ |
{ | ||
"name": "markdown-it", | ||
"version": "8.2.1", | ||
"version": "8.2.2", | ||
"description": "Markdown-it - modern pluggable markdown parser.", | ||
@@ -19,3 +19,4 @@ "keywords": [ | ||
"scripts": { | ||
"test": "make test" | ||
"test": "make test", | ||
"heroku-postbuild": "npm install express" | ||
}, | ||
@@ -43,2 +44,3 @@ "files": [ | ||
"eslint": "^3.5.0", | ||
"express": "^4.14.0", | ||
"highlight.js": "^9.2.0", | ||
@@ -45,0 +47,0 @@ "istanbul": "^0.4.5", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
538836
11733
26