Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pdf-from-html

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdf-from-html - npm Package Compare versions

Comparing version 0.1.2-beta.1 to 0.1.2-beta.2

10

package.json
{
"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">&emsp;&emsp;&emsp;
<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>&emsp;
<a
href="https://dependabot.com"><img
src="https://api.dependabot.com/badges/status?host=github&repo=HQ20/pdf-from-html" /></a>&emsp;
</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>
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc