pdf-from-html
Advanced tools
Comparing version 0.1.2-beta.1 to 0.1.2-beta.2
{ | ||
"name": "pdf-from-html", | ||
"version": "0.1.2-beta.1", | ||
"version": "0.1.2-beta.2", | ||
"description": "Generate PDF file using an HTML file as input for the body.", | ||
@@ -35,10 +35,10 @@ "main": "src/index.js", | ||
"devDependencies": { | ||
"meow": "6.0.0", | ||
"mustache": "3.2.1", | ||
"puppeteer": "2.0.0", | ||
"meow": "6.1.0", | ||
"mustache": "4.0.1", | ||
"puppeteer": "3.0.0", | ||
"chai": "4.2.0", | ||
"expect.js": "0.3.1", | ||
"mocha": "7.0.0", | ||
"mocha": "7.1.1", | ||
"pdf-to-text": "0.0.7" | ||
} | ||
} |
@@ -1,4 +0,22 @@ | ||
# pdf-from-html | ||
pdf-from-html is a nodejs library to transform an html (possibly from [markdown-it](https://markdown-it.github.io/)) in a PDF. | ||
<div align="center"> | ||
<div style="width:870px;height:300px;display:flex;margin:auto"> | ||
<img style="" width="300" src="pdf.svg">    | ||
<span style="line-height:300px;font-size:80px">pdf-from-html</span> | ||
</div> | ||
</div> | ||
> pdf-from-html is a nodejs library to transform an html (possibly from [markdown-it](https://markdown-it.github.io/)) in a PDF. | ||
<div align="center"> | ||
<div> | ||
<a | ||
href="https://travis-ci.org/HQ20/pdf-from-html"><img | ||
src="https://travis-ci.org/HQ20/pdf-from-html.svg?branch=master" /></a>  | ||
<a | ||
href="https://dependabot.com"><img | ||
src="https://api.dependabot.com/badges/status?host=github&repo=HQ20/pdf-from-html" /></a>  | ||
</div> | ||
</div> | ||
## Installation | ||
@@ -9,9 +27,7 @@ | ||
```bash | ||
npm install pdf-from-html | ||
$ npm install --dev pdf-from-html | ||
# or | ||
$ yarn add --dev pdf-from-html | ||
``` | ||
```bash | ||
yarn add pdf-from-html | ||
``` | ||
## Usage | ||
@@ -22,3 +38,3 @@ | ||
```bash | ||
pdf-from-html docs/ somefile.html | ||
$ pdf-from-html docs/ somefile.html | ||
``` | ||
@@ -32,3 +48,3 @@ as npm script | ||
or as part of your nodejs app | ||
```js | ||
```typescript | ||
import { generatePDF } from 'pdf-from-html'; | ||
@@ -38,3 +54,3 @@ // or | ||
// and then just call the method | ||
generatePDF(outputDir, outputFileName, inputContent); | ||
generatePDF(outputDir: string, outputFileName: string, inputContent: string); | ||
``` | ||
@@ -48,2 +64,5 @@ | ||
## License | ||
[Apache-2.0](LICENSE.md) | ||
[Apache-2.0](LICENSE.md) | ||
## Credits | ||
* Icons made by <a href="https://www.flaticon.com/authors/freepik" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon"> www.flaticon.com</a> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42245
63
1