Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@types/html-pdf-node
Advanced tools
TypeScript definitions for html-pdf-node
npm install --save @types/html-pdf-node
This package contains type definitions for html-pdf-node (https://github.com/mrafiqk/html-pdf-node#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/html-pdf-node.
/// <reference types="node"/>
export interface File {
url?: string | undefined;
content?: string | undefined;
}
export interface OptionsMargin {
top?: string | number | undefined;
right?: string | number | undefined;
bottom?: string | number | undefined;
left?: string | number | undefined;
}
export interface Options {
args?: string[] | undefined;
path?: string | undefined;
scale?: number | undefined;
displayHeaderFooter?: boolean | undefined;
headerTemplate?: string | undefined;
footerTemplate?: string | undefined;
printBackground?: boolean | undefined;
landscape?: boolean | undefined;
pageRanges?: string | undefined;
format?: string | undefined;
width?: string | number | undefined;
height?: string | number | undefined;
margin?: OptionsMargin | undefined;
preferCSSPageSize?: boolean | undefined;
}
export function generatePdf(
file: File,
options?: Options,
callback?: (err: Error, buffer: Buffer) => void,
): void;
export function generatePdfs(
files: File[],
options?: Options,
callback?: (err: Error, buffer: Buffer) => void,
): void;
These definitions were written by bojovypstros.
FAQs
TypeScript definitions for html-pdf-node
The npm package @types/html-pdf-node receives a total of 10,875 weekly downloads. As such, @types/html-pdf-node popularity was classified as popular.
We found that @types/html-pdf-node 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.