Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
@smarterservices/html-to-pdf-to-s3
Advanced tools
Module that takes a URL and using pdfcrowd pipes the resulting pdf into an s3 bucket
npm install @smarterservices/html-to-pdf-to-s3 -s
let pdfClient = require('@smarterservices/html-to-pdf-to-s3');
let pdf = new pdfClient(config); // config defined below
pdf.convertUrl(url,bucket,name,options)
.then(console.log)
.catch(console.log)
{
"accessKey":"aws access key. not required",
"secretKey":"aws secret key not required",
"region": "aws region. not required defaults to us-east-1",
"pdfCrowd": {
"userName": "pdfCrowd username",
"apiKey": "pdfCrowd api key",
"hostName": "pdfCrowd hostname. omit for default."
}
}
Can use AWS keys in env variable as AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
NOTE: AWS will use credentials in this order passed in to config > in environment var > with your system profile
url
: url that will be converted to pdfbucket
: name of bucket to insert itemname
: name of output item(must end in .pdf)options
: options object for pdfCrowd. This is optional.pdf.convertUrl('http://google.com','testBucket','google.pdf')
.then(console.log)
.catch(console.log)
html
: raw html that will be convertedbucket
: name of bucket to insert itemname
: name of output item(must end in .pdf)options
: options object for pdfCrowd. This is optional.pdf.convertHtml('<strong>Hi</strong>','testBucket','google.pdf')
.then(console.log)
.catch(console.log)
FAQs
Module that takes a URL and using pdfcrowd pipes the resulting pdf into an s3 bucket
The npm package @smarterservices/html-to-pdf-to-s3 receives a total of 3 weekly downloads. As such, @smarterservices/html-to-pdf-to-s3 popularity was classified as not popular.
We found that @smarterservices/html-to-pdf-to-s3 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.