Skip to content

Commit

Permalink
updated packages and readme for 1.0.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
codecounselor committed Nov 11, 2016
1 parent a32ccba commit 75bf7eb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})
})
```

Expand Down
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -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"
Expand All @@ -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",
Expand Down

0 comments on commit 75bf7eb

Please sign in to comment.