
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@isneezy/pdf-generator-cli
Advanced tools
A powerful and versatile command line interface for converting HTML pages, templates, and URLs into high-quality PDF documents.
@isneezy/pdf-generator-cli
is a command line interface for the @isneezy/pdf-generator
library, it allows you to easily generate PDFs from the command line.
The package provides a single command pdf-generator
that you can use to generate PDFs from a URL, HTML content or handlebars template with the context data.
To install the package, you can use npm or yarn.
npm install -g @isneezy/pdf-generator-cli
yarn global add @isneezy/pdf-generator-cli
The package provides a single command pdf-generator
that you can use to generate PDFs.
pdf-generator [options]
Option | Type | Default | Description |
---|---|---|---|
-V, --version | Output the version number | ||
-g, --goto | string | URL to the HTML content/handlebars template to be converted to PDF. If provided, it takes priority over the template option. | |
-t, --template | string | Path to HTML/handlebars template or string containing HTML/handlebars template to be converted to PDF. If a goto option is provided, this option will be ignored. | |
-c, --context | string | Path to json file or json or json string with the data to be passed to the HTML template | |
-f, --format | string | A4 | Sets the paper format to be used when printing a PDF. Accepted values include: letter, legal, tabloid, ledger, a0, a1, a2, a3, a4, a5, a6. |
-H, --header-template | string | String containing the template to the header, if set this takes priority over the header template in the document | |
-F, --footer-template | string | String containing the template to the footer, if set this takes priority over the footer template in the document | |
-L, --landscape | boolean | false | Use this flag to switch the orientation from portrait to landscape |
-M, --margin | string | 10mm | Set the page margins. The margin option can be set in the following formats:
|
-o, --output | string | Path to the output PDF file |
The command takes the same options as the
generate
method in the
@isneezy/pdf-generator
library, and it generates the PDF file in the specified output
path.
Here is an example of how to use the command to generate a PDF from a handlebars template and context data:
pdf-generator -t "path/to/template.html" -c "path/to/context.json" -o "path/to/output.pdf"
# Or you can pass the template and context strings directly
pdf-generator -t "<p>My {{ name }}</p>" -c '{ name: "template"}' -o "path/to/output.pdf"
FAQs
A powerful and versatile command line interface for converting HTML pages, templates, and URLs into high-quality PDF documents.
The npm package @isneezy/pdf-generator-cli receives a total of 0 weekly downloads. As such, @isneezy/pdf-generator-cli popularity was classified as not popular.
We found that @isneezy/pdf-generator-cli 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.