
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
Base on PrintThis, but not depend on jQuery
import PrintThis from 'pure-print'
const printThisDefaults = {
debug: false, // show the iframe for debugging
importCSS: true, // import parent page css
importStyle: true, // import style tags
printContainer: true, // print outer container/$.selector
loadCSS: '', // load an additional css file - load multiple stylesheets with an array []
pageTitle: '', // add title to print page
removeInline: false, // remove all inline styles
printDelay: 333, // variable print delay
header: null, // prefix to html
footer: null, // postfix to html
formValues: true, // preserve input/form values
canvas: false, // copy canvas content (experimental)
base: false, // preserve the BASE tag, or accept a string for the URL
doctypeString: '<!DOCTYPE html>', // html doctype
removeScripts: false, // remove script tags before appending
copyTagClasses: false // copy classes from the html & body tag
}
PrintThis('#id', printThisDefaults)
export declare type PrintThisProp = {
debug?: boolean;
importCSS?: boolean;
importStyle?: boolean;
printContainer?: boolean;
loadCSS?: string | string[];
pageTitle?: string;
removeInline?: boolean;
printDelay?: number;
header?: string;
footer?: string;
formValues?: boolean;
canvas?: boolean;
base?: boolean;
doctypeString?: string;
removeScripts?: boolean;
copyTagClasses?: boolean | 'b' | 'h' | 'bh';
};
export default function printThis(element: HTMLElement | string, options?: PrintThisProp): void;
FAQs
print element on a page without any dependence
We found that pure-print 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.