New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

printeer

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

printeer - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

google.pdf

33

bin/index.js

@@ -1,4 +0,3 @@

import {argv as $eSn2T$argv, exit as $eSn2T$exit} from "process";
import $eSn2T$puppeteer from "puppeteer";
import {normalize as $eSn2T$normalize} from "path";
import $l7i9T$puppeteer from "puppeteer";
import {normalize as $l7i9T$normalize} from "path";

@@ -15,4 +14,4 @@

return new Promise(async (resolve, reject)=>{
outputFile = (0, $eSn2T$normalize)(outputFile);
const browser = await (0, $eSn2T$puppeteer).launch({
outputFile = (0, $l7i9T$normalize)(outputFile);
const browser = await (0, $l7i9T$puppeteer).launch({
headless: true

@@ -38,26 +37,6 @@ });

var /**
* Prints the usage of the command line tool.
*/ $ca8fa687ca32fe66$export$2e2bcd8739ae039 = ()=>{
console.log("Usage: printeer <url> <outputFile>");
};
const $cf838c15c8b009ba$export$4f653a8d4fdb37ed = (0, $173d6c6c8da44cf1$export$2e2bcd8739ae039);
/**
* Main entry point of the print-web command!
*/ (async function main() {
// First argument is the URL that should be used to generate the PDF.
// Second argument is the output file name.
const url = $eSn2T$argv[2];
const outputFile = $eSn2T$argv[3];
// If url or outputFile is not provided, print usage and exit.
if (!url || !outputFile) {
(0, $ca8fa687ca32fe66$export$2e2bcd8739ae039)();
$eSn2T$exit(1);
}
await (0, $173d6c6c8da44cf1$export$2e2bcd8739ae039)(url, outputFile);
})();
export {$cf838c15c8b009ba$export$4f653a8d4fdb37ed as printeer};
//# sourceMappingURL=index.js.map
{
"name": "printeer",
"version": "1.1.2",
"version": "1.1.3",
"description": "Prints the specified web url to PDF or Image!",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc