diff --git a/README.md b/README.md index 1cb2038..9c0e856 100644 --- a/README.md +++ b/README.md @@ -68,12 +68,13 @@ exporter.start() ```javascript app.post('/pdfexport', function(req,res){ // derive job arguments from request here - var job = exporter.createJob(source, target, options) + exporter.createJob(source, target, options).then( job => { job.on('job-complete', (r) => { - console.log('pdf files:', r.results) - // Process the PDF file(s) here - }) - job.render() + console.log('pdf files:', r.results) + // Process the PDF file(s) here + }) + job.render() + }) }) ``` diff --git a/package.json b/package.json index 4b45dac..beb7924 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "electron-pdf", - "version": "0.13.1", + "version": "1.0.0", "description": "A command line tool to generate PDF from URL, HTML or Markdown files", "main": "lib/index.js", "scripts": { @@ -24,9 +24,11 @@ "pdf", "png", "export", - "render" + "render", + "html", + "markdown" ], - "author": "Fraser Xu", + "author": "Fraser Xu, Nate Good", "license": "MIT", "bugs": { "url": "https://github.com/fraserxu/electron-pdf/issues" @@ -42,8 +44,8 @@ "dependencies": { "async": "^2.0.1", "bluebird": "^3.4.6", - "debug": "^2.2.0", - "electron": "^1.4.3", + "debug": "^2.3.2", + "electron": "^1.4.6", "eventemitter2": "^2.1.3", "github-markdown-css": "^2.0.9", "highlight.js": "^9.0.0",