diff options
Diffstat (limited to 'lib/cli/getOutputFolder.js')
-rw-r--r-- | lib/cli/getOutputFolder.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/cli/getOutputFolder.js b/lib/cli/getOutputFolder.js deleted file mode 100644 index 272dff9..0000000 --- a/lib/cli/getOutputFolder.js +++ /dev/null @@ -1,17 +0,0 @@ -var path = require('path'); - -/** - Return path to output folder - - @param {Array} args - @return {String} -*/ -function getOutputFolder(args) { - var bookRoot = path.resolve(args[0] || process.cwd()); - var defaultOutputRoot = path.join(bookRoot, '_book'); - var outputFolder = args[1]? path.resolve(process.cwd(), args[1]) : defaultOutputRoot; - - return outputFolder; -} - -module.exports = getOutputFolder; |