
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@protacon/html-to-pdf
Advanced tools
Simple tool to convert HTML content to PDF
First of all you have to install npm
and node.js
to your box - note that NodeJS 6+
is required. See following links to help you with installation:
First of all you have to install npm
and node.js
to your box. Installation instructions can
be found here.
Note that node.js 6.x
is required.
$ git clone https://github.com/ProtaconSolutions/html-to-pdf.git
$ cd html-to-pdf
# install the project's dependencies
$ npm install
# fast install (via Yarn, https://yarnpkg.com)
$ yarn install # or yarn
See help
$ npm run convert
# OR
$ node bin/convert
Creating example file
$ npm run convert -- src/examples/example.html example.pdf --data '{"title": "Awesome", "content": "Lorem ipsum dolor."}'
# OR
$ node bin/convert src/examples/example.html example.pdf --data '{"title": "Awesome", "content": "Lorem ipsum dolor."}'
Start server
$ npm start
Then open your http://localhost:3000/
within your favorite browser.
Translators are way to make embedded dataconversions to templates.
data: { barcode: '[translate:type]value'}
Translates textual content as barcode. Output is base64 encoded image string.
data: { barcode: '[translate:barcode]AE5C9B'}
Can be embedded to template HTML:
<img src="{{ barcode }}"/>
Protacon Solutions Ltd
Copyright (c) 2017 Protacon Solutions Ltd
FAQs
Simple tool to convert HTML content to PDF
The npm package @protacon/html-to-pdf receives a total of 19 weekly downloads. As such, @protacon/html-to-pdf popularity was classified as not popular.
We found that @protacon/html-to-pdf demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.