Skip to content

Commit 4c09ae7

Browse files
committed
Print returned JSON (filename and consoleMessages) in the CLI
1 parent b3fe660 commit 4c09ae7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bin/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@ function htmlpdf (source, destination) {
2828
}
2929
pdf.create(html, options).toFile(destination, function (err, res) {
3030
if (err) throw err
31+
if (res) console.log(JSON.stringify(res))
3132
})
3233
}

0 commit comments

Comments
 (0)