Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
html-invoicer
Advanced tools
CLI to genarate simple invoices from html template
npm i -g html-invoicer
invoice --tmpl path/to/template.html --data path/to/data --out path/to/output.pdf --any 12 --kind "of additional" --params possible
Parameter | Type | Required | Description |
---|---|---|---|
--tmpl | String | Yes | Template: a relative or absolute path to an html file. Templates can use es6 string interpolation syntax for variables: ${varname} |
--data | String | Yes | Data: a relative or absolute path to a js or json file. A js file can return either an |
--out | String | Yes | Output file: the pdf destination file |
Any additional parameters will be passed to the js data function — in case it is actually a function — and can be used to craft the template variables object — as stated before.
A complete example of a
template.html
file, adata.js
file and the resultinginvoice.pdf
file can be found under theexample
directory.
FAQs
cli to genarate simple invoices from html template
The npm package html-invoicer receives a total of 1 weekly downloads. As such, html-invoicer popularity was classified as not popular.
We found that html-invoicer 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.