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

pdf-from-html

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdf-from-html

Generate PDF file using an HTML file as input for the body.

  • 0.1.2-beta.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
decreased by-79.07%
Maintainers
1
Weekly downloads
 
Created
Source

pdf-from-html

pdf-from-html is a nodejs library to transform an html (possibly from markdown-it) in a PDF.

Installation

Install it with npm or yarn.

npm install pdf-from-html
yarn add pdf-from-html

Usage

It's possible to use it from command line

pdf-from-html docs/ somefile.html

as npm script

"scripts": {
    "pdf": "pdf-from-html docs/ somefile.html"
},

or as part of your nodejs app

import { generatePDF } from 'pdf-from-html';
// or
// const generatePDF = require('pdf-from-html').generatePDF;
// and then just call the method
generatePDF(outputDir, outputFileName, inputContent);

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

Apache-2.0

Keywords

FAQs

Package last updated on 10 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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