@appcominteractive/appcom-pandoc-npm
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -12,2 +12,3 @@ 'use strict'; | ||
var dateformat = require('dateformat'); | ||
var mkdirp = require('mkdirp'); | ||
@@ -19,5 +20,7 @@ program.parse(process.argv); | ||
var outputDirectory = path.dirname(outputFilename ? outputFilename : inputFilename); | ||
var extension = path.extname(outputFilename ? outputFilename : inputFilename); | ||
outputFilename = path.basename(outputFilename ? outputFilename : inputFilename, extension) + '.html'; | ||
outputFilename = path.join(outputDirectory, path.basename(outputFilename ? outputFilename : inputFilename, extension) + '.html'); | ||
if (!inputFilename) { | ||
@@ -35,2 +38,3 @@ console.error('You did not specify an input filename. Please provide a filepath to a valid markdown file!'); | ||
mkdirp.sync(outputDirectory); | ||
exec(command, function (error, stdout) { | ||
@@ -37,0 +41,0 @@ if (error) { |
{ | ||
"name": "@appcominteractive/appcom-pandoc-npm", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "This is a module for building html from pandoc markdown with appcom CI", | ||
@@ -35,2 +35,3 @@ "main": "./distribution/index.js", | ||
"dateformat": "^2.0.0", | ||
"mkdirp": "^0.5.1", | ||
"simple-git": "^1.73.0", | ||
@@ -37,0 +38,0 @@ "stringbuilder": "0.0.11" |
# Appdoc | ||
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) | ||
[![npm version](https://badge.fury.io/js/%40appcominteractive%2Fappcom-pandoc-npm.svg)](https://badge.fury.io/js/%40appcominteractive%2Fappcom-pandoc-npm) | ||
@@ -5,0 +6,0 @@ Appdoc (**App**com Pan**doc**) is a module for converting markdown to html |
Sorry, the diff of this file is not supported yet
35683
898
53
5
+ Addedmkdirp@^0.5.1
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)