
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@weweb/backend-pdfmonkey
Advanced tools
Pdfmonkey integration for WeWeb backend services. This package provides access to the PDFMonkey API within WeWeb backend workflows.
npm install @weweb/backend-pdfmonkey
# or
yarn add @weweb/backend-pdfmonkey
# or
pnpm add @weweb/backend-pdfmonkey
The integration can be configured using environment variables or by passing options to the createPdfmonkeyIntegration
function:
import { createPdfmonkeyIntegration } from '@weweb/backend-pdfmonkey';
// Using environment variables
const pdfmonkey = createPdfmonkeyIntegration();
// Or with custom options
const customPdfmonkey = createPdfmonkeyIntegration({
apiKey: 'your-api-key'
});
PDFMONKEY_API_KEY
: Your PDFMonkey API keyconst documents = await pdfmonkey.listDocuments({
page: 1,
status: 'success',
documentTemplateId: 'template-id',
workspaceId: 'workspace-id',
updatedSince: '2023-01-01T00:00:00Z'
});
const document = await pdfmonkey.getDocument({
id: 'document-id'
});
const documentCard = await pdfmonkey.getDocumentCard({
id: 'document-id'
});
const newDocument = await pdfmonkey.createDocument({
document_template_id: 'template-id',
status: 'pending', // or "draft"
payload: {
clientName: 'John Doe',
orderDate: '2023-01-01',
products: [
{ name: 'Product 1', quantity: 2, unitPrice: 10.99 },
{ name: 'Product 2', quantity: 1, unitPrice: 24.99 }
]
},
meta: {
_filename: '2023-01-01 John Doe.pdf',
clientRef: 'client-123'
}
});
const updatedDocument = await pdfmonkey.updateDocument({
id: 'document-id',
status: 'pending',
payload: {
clientName: 'Jane Doe'
}
});
await pdfmonkey.deleteDocument({
id: 'document-id'
});
const templates = await pdfmonkey.listTemplates({
page: 1,
workspaceId: 'workspace-id',
folders: 'folder-id-1,folder-id-2',
sort: 'identifier'
});
const template = await pdfmonkey.getTemplate({
id: 'template-id'
});
const newTemplate = await pdfmonkey.createTemplate({
identifier: 'Invoice Template',
edition_mode: 'code',
body: '<h1>Invoice for {{clientName}}</h1>',
scss_style: 'h1 { color: blue; }',
sample_data: JSON.stringify({ clientName: 'John Doe' }),
settings: {
orientation: 'portrait',
paper_format: 'a4',
margin: {
top: 10,
right: 10,
bottom: 10,
left: 10
}
},
pdf_engine_id: 'engine-id',
ttl: 86400 // 1 day
});
const updatedTemplate = await pdfmonkey.updateTemplate({
id: 'template-id',
body: '<h1>Updated Invoice for {{clientName}}</h1>'
});
await pdfmonkey.deleteTemplate({
id: 'template-id'
});
const engines = await pdfmonkey.listEngines();
MIT
FAQs
Pdfmonkey integration for WeWeb backend services
The npm package @weweb/backend-pdfmonkey receives a total of 3 weekly downloads. As such, @weweb/backend-pdfmonkey popularity was classified as not popular.
We found that @weweb/backend-pdfmonkey demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.