Comparing version 0.9.1 to 0.9.2
@@ -9,3 +9,3 @@ #!/usr/bin/env node | ||
* ---------------------------------------------------------------------------- | ||
* @version 0.9.1 | ||
* @version 0.9.2 | ||
* @author AaronJan <https://github.com/AaronJan> | ||
@@ -12,0 +12,0 @@ * @link https://github.com/AaronJan/marksnap |
@@ -149,3 +149,3 @@ /** | ||
*/ | ||
options.source = path.isAbsolute(argv._[0]) ? | ||
options.source = helper.pathIsAbsolute(argv._[0]) ? | ||
argv._[0] : | ||
@@ -168,3 +168,3 @@ path.resolve(process.cwd(), argv._[0]); | ||
if (argv._.length >= 2) { | ||
options.directory = path.isAbsolute(argv._[1]) ? | ||
options.directory = helper.pathIsAbsolute(argv._[1]) ? | ||
argv._[1] : | ||
@@ -171,0 +171,0 @@ path.resolve(process.cwd(), argv._[1]); |
@@ -7,2 +7,3 @@ /** | ||
var chalk = require('chalk'); | ||
var pathIsAbsolute = require('./path-is-absolute.js'); | ||
@@ -27,4 +28,9 @@ | ||
/** | ||
* Determines whether path is an absolute path. | ||
* | ||
* @param path | ||
*/ | ||
helper.pathIsAbsolute = pathIsAbsolute; | ||
module.exports = helper; |
{ | ||
"name": "marksnap", | ||
"version": "0.9.1", | ||
"version": "0.9.2", | ||
"description": "CLI tool for parse markdown(.md) to HTML, PDF.", | ||
@@ -5,0 +5,0 @@ "readmeFilename": "README.md", |
@@ -10,3 +10,3 @@ # Marksnap.js | ||
**This package requires `node` version `>= 0.12`.** | ||
**This package requires `node` version `>= 0.10`.** | ||
@@ -13,0 +13,0 @@ ### Example usage |
Sorry, the diff of this file is not supported yet
21861
10
276