
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
grunt-html-pdf-2
Advanced tools
Successor of grunt-html-pdf which seems to be no longer in development
Grunt wrapper for the Node package html-pdf. Credit to the original package grunt-html-pdf developed by maxberry.
This plugin requires Grunt ~0.4.5
Install this plugin with this command:
npm install grunt-html-pdf --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-html-pdf-2');
In your project's Gruntfile, add a section named html_pdf to the data object passed into grunt.initConfig().
grunt.initConfig({
html_pdf: {
dist: {
options: {
// Task-specific options go here.
},
files: {
// Target-specific file lists and/or options go here.
},
}
},
});
Type: String
Default value: '\n'
If multiple input files are supplied in one file declaration, they will be concatenated with this separator.
For example:
files: {
'examples/example.pdf': ['examples/example.html', 'examples/second_source.html',],
}
Will concatenate example.html and second_source.html before converting the concatenated file to a PDF.
For a full list of options see html-pdf settings
grunt.initConfig({
html_pdf: {
dist: {
options: {
format: 'A4',
orientation: 'portrait',
quality: '75',
},
files: {
'files/mypdf.pdf': ['src/myhtml.html',],
},
}
},
});
FAQs
Successor of grunt-html-pdf which seems to be no longer in development
The npm package grunt-html-pdf-2 receives a total of 0 weekly downloads. As such, grunt-html-pdf-2 popularity was classified as not popular.
We found that grunt-html-pdf-2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.