We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2aabc6 commit e9a9a36Copy full SHA for e9a9a36
src/index.js
@@ -6,13 +6,12 @@ import debug from 'debug'
6
import getData from './getData.js'
7
import downloadFiles from './downloadFiles.js'
8
import generateName from './generateName.js'
9
-// import Listr from 'listr'
10
11
const log = debug('page-loader')
12
13
const getAbsolutePath = dirpath => path.resolve(process.cwd(), dirpath)
14
15
-const downloadPage = (url, outputDir) => {
+const downloadPage = (url, outputDir = process.cwd()) => {
16
log('download page %s to %s', url, outputDir)
17
18
const absOutputDir = getAbsolutePath(outputDir)
0 commit comments