Installations
npm install node-red-contrib-pdfmake
Developer Guide
Typescript
No
Module System
N/A
Node Version
12.14.1
NPM Version
6.14.4
Score
58
Supply Chain
65.4
Quality
73.9
Maintenance
100
Vulnerability
99.3
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
HTML (83.7%)
JavaScript (16.3%)
Developer
ollixx
Download Statistics
Total Downloads
22,028
Last Day
45
Last Week
179
Last Month
593
Last Year
6,298
GitHub Statistics
1 Stars
16 Commits
7 Forks
2 Branches
1 Contributors
Package Meta Information
Latest Version
1.1.0
Package Id
node-red-contrib-pdfmake@1.1.0
Unpacked Size
152.49 kB
Size
143.99 kB
File Count
12
NPM Version
6.14.4
Node Version
12.14.1
Total Downloads
Cumulative downloads
Total Downloads
22,028
Last day
181.3%
45
Compared to previous day
Last week
38.8%
179
Compared to previous week
Last month
27.8%
593
Compared to previous month
Last year
15.6%
6,298
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Dev Dependencies
3
node-red-contrib-pdfmake
This node is a simple wrapper around pdfmake, a JSON based solution to create PDFs from a given document definition.
Install
node-red-contrib-pdfmake can be install using the node-red editor's pallete or by running npm in the console:
1npm install node-red-contrib-pdfmake
Usage
There is just one node, and it expects an object in msg.payload
with a valid docDefinition like:
1{ 2 "content": [ 3 "First paragraph", 4 "Another paragraph, this time a little bit longer to make sure, this line will be divided into at least two lines" 5 ] 6 7}
The node returns a msg.payload
holding the created PDF either as a Buffer or a base64 encoded string (as configured in the node).
Examples
Examples are provided using the default node-red way, i.e. use import
in the editor menu and look for examples in the node-red-contrib-pdfmake
package
#1 simple text PDF
This is the first example found on the pdfmake website.
#2 image & svg example PDF
This is a custom example showing how to read an image from file and integrate it into the PDF. It also shows a simple SVG to be included as well.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
0 existing vulnerabilities detected
Reason
Found 0/13 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 4 are checked with a SAST tool
Score
3
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More