
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
@mathewparet/vue-print
Advanced tools
A way to quickly print portion of a website.
npm install @mathewparet/vue-print
import Print from '@mathewparet/vue-print';
Vue.use(Print);
import Print from '@mathewparet/vue-print';
export default {
components: {
Print
}
}
<print ref="printData">
<h1>Hello World</h1>
<p class="print-hidden">I am hidden during print</p>
</print>
print()
Call this method to initiate print.
this.$refs.printData.print();
Name | Required | Type | Default | Description |
---|---|---|---|---|
auto-close | No | Boolean | true | If true the print popup window will close when the print dialogue closes |
use-manifest | No | Boolean | true | If true the /mix-manifest.json file is called to identify the latest print-css file. If no manifest is found, it falls back to use the print-css file without version |
print-css | No | String | '/css/print.css' | Defnes the default print.css file. |
print-hidden
Use this class for elements that shouldn't be printed.
print-closed
This event is fired when print window is closed.
FAQs
A way to quickly print portion of a website.
We found that @mathewparet/vue-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.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.