Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
sitetopdf-watcher
Advanced tools
Readme
A Node.js command-line tool that watches for changes in HTML files and automatically converts them to PDF using sitetopdf
.
To install sitetopdf-watcher
globally, run the following command:
npm install -g sitetopdf-watcher
This will install the package globally on your system, allowing it to be run from any location.
After installation, you can start watching a directory with the following command:
sitetopdf-watcher --port 3333 --entry-file index.html
By default, sitetopdf-watcher
will serve files on port 3333 and watch the index.html
file for changes.
-p, --port <port>
: Specify the port on which the file server will run. Default is 3333.-e, --entry-file <file>
: Specify the path to the entry HTML file. Default is index.html.-c, --config-file <file>
: Specify the path to the configuration file. Default is config.json.Create a config.json
file in your project directory to set custom options for PDF conversion. Here is an example configuration:
{
"output": "output.pdf",
"wait-until": "networkidle0"
}
The output
field specifies the name of the created PDF file, and wait-until
is an option passed to sitetopdf
that defines when to consider the page load complete.
If you wish to contribute to the project or fork it for your own modifications, here are some useful commands:
npm run build
: Compiles the TypeScript source code.npm run watch
: Watches the TypeScript source for changes and recompiles.npm run clean
: Removes generated files.npm start
: Runs the compiled JavaScript code.FAQs
A tool to watch HTML file changes and convert them to PDF in real-time.
The npm package sitetopdf-watcher receives a total of 0 weekly downloads. As such, sitetopdf-watcher popularity was classified as not popular.
We found that sitetopdf-watcher demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.