
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
simply-print-vue
Advanced tools
Easily print any HTML content you you want in Vue. Tt can be hidden content, certain elements, etc.
A Vuejs3 Mixin that allows you to open a print window of the contents given in a certain id
This package has originated from vue-html-to-paper
Run the following command
npm install vue-simple-print
Usage inside main.js
import { createApp } from 'vue'
import HtmlToPrint from "vue-html-to-print";
const app = createApp(App)
app.use(HtmlToPrint).mount('#app')
When imported inside of your main.js file, the mixin is callable from your component
<template>
<div>
<div>
<h1>This is a default page</h1>
</div>
<!-- The div with the desired contents -->
<div id="print">
<h1>I'd like to print this</h1>
</div>
<button @click="print"></button>
</div>
<template>
<script>
export default {
methods: {
async print () {
// Pass the element id here
await this.$htmlToPrint('print');
}
}
}
</script>
Optionally you can apply different options with each call by defining other options
this.$htmlToPrint('print');
FAQs
Easily print any HTML content you you want in Vue. Tt can be hidden content, certain elements, etc.
The npm package simply-print-vue receives a total of 18 weekly downloads. As such, simply-print-vue popularity was classified as not popular.
We found that simply-print-vue 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.