Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
docxtemplater-cli-open-image-module
Advanced tools
CLI for Docxtemplater including optional support of OpenSource ImageModule
This fork of docxtemplater CLI includes the support for open-docxtemplater-image-module.
The package below includes a copy of docxtemplater and open-docxtemplater-image-module.
npm install -g docxtemplater-cli-open-image-module
Browse to folder 'examples' and run the following in your console
docxtemplater input.pptx data.json output.pptx
This is a simple JSON file. Assuming we are working on the template 'input.pptx' provided with this package in 'examples' folder, we write below JSON to replace tags in the template by their respective value.
{
"first_name": "John",
"last_name": "Doe",
"description": "He is awesome",
"phone": "+4412345678",
"picture": "johndoe.png"
}
As you can see we have included a picture of John Doe (johndoe.png). For this picture to be correctly rendered in the output, we must explicitly activate the Open Source Image Module open-docxtemplater-image-module. Note that all images must be under the directory 'imageDir'.
{
"first_name": "John",
"last_name": "Doe",
"description": "He is awesome",
"phone": "+4412345678",
"picture": "johndoe.png",
"config": {
"modules": ["open-docxtemplater-image-module"],
"imageDir": "."
}
}
More on how to write your templates in docxtemplater documentation.
FAQs
CLI for Docxtemplater including optional support of OpenSource ImageModule
The npm package docxtemplater-cli-open-image-module receives a total of 1 weekly downloads. As such, docxtemplater-cli-open-image-module popularity was classified as not popular.
We found that docxtemplater-cli-open-image-module 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
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.