Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@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 0 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.