Gathering detailed insights and metrics for vue-html2canvas
Gathering detailed insights and metrics for vue-html2canvas
Gathering detailed insights and metrics for vue-html2canvas
Gathering detailed insights and metrics for vue-html2canvas
npm install vue-html2canvas
Typescript
Module System
Node Version
NPM Version
88.4
Supply Chain
83.4
Quality
75.3
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
1,038,525
Last Day
1,481
Last Week
11,149
Last Month
49,753
Last Year
363,174
116 Stars
26 Commits
24 Forks
4 Watching
14 Branches
5 Contributors
Latest Version
0.0.4
Package Id
vue-html2canvas@0.0.4
Unpacked Size
333.92 kB
Size
86.02 kB
File Count
9
NPM Version
6.4.1
Node Version
8.12.0
Cumulative downloads
Total Downloads
Last day
-23.7%
1,481
Compared to previous day
Last week
-6.1%
11,149
Compared to previous week
Last month
1.1%
49,753
Compared to previous month
Last year
72.7%
363,174
Compared to previous year
Vue mixin for Html2Canvas
npm install vue-html2canvas
Or
yarn add vue-html2canvas
main.js
1import Vue from 'vue'; 2import VueHtml2Canvas from 'vue-html2canvas'; 3 4Vue.use(VueHtml2Canvas);
component
1<template> 2 <div> 3 <!-- SOURCE --> 4 <div ref="printMe"> 5 <h1>Print me!</h1> 6 </div> 7 <!-- OUTPUT --> 8 <img :src="output"> 9 </div> 10<template> 11 12<script> 13export default { 14 data() { 15 return { 16 output: null 17 } 18 }, 19 methods: { 20 print() { 21 const el = this.$refs.printMe; 22 // add option type to get the image version 23 // if not provided the promise will return 24 // the canvas. 25 const options = { 26 type: 'dataURL' 27 } 28 this.output = await this.$html2canvas(el, options); 29 } 30 } 31} 32</script>
Made with ❤️ by Jofferson Ramirez Tiquez
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 4/12 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
55 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-12-16
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More