Gathering detailed insights and metrics for vue-simple-alert
Gathering detailed insights and metrics for vue-simple-alert
Gathering detailed insights and metrics for vue-simple-alert
Gathering detailed insights and metrics for vue-simple-alert
npm install vue-simple-alert
Typescript
Module System
Node Version
NPM Version
58.6
Supply Chain
98.7
Quality
75
Maintenance
50
Vulnerability
99.6
License
Vue (61.15%)
TypeScript (25.52%)
JavaScript (6.76%)
HTML (6.58%)
Total Downloads
669,743
Last Day
359
Last Week
1,913
Last Month
8,269
Last Year
119,991
134 Stars
9 Commits
26 Forks
4 Watching
30 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
1.1.1
Package Id
vue-simple-alert@1.1.1
Unpacked Size
14.84 kB
Size
4.43 kB
File Count
6
NPM Version
6.12.1
Node Version
12.13.0
Cumulative downloads
Total Downloads
Last day
2%
359
Compared to previous day
Last week
-15.9%
1,913
Compared to previous week
Last month
5.4%
8,269
Compared to previous month
Last year
-16.9%
119,991
Compared to previous year
1
1
Simple alert(), confirm(), prompt() for Vue.js, using sweetalert2.
Check out live demo
1npm i vue-simple-alert
1// main.js 2import Vue from "vue"; 3import VueSimpleAlert from "vue-simple-alert"; 4 5Vue.use(VueSimpleAlert);
1// in any component 2 3this.$alert("Hello Vue Simple Alert.");
1// in any component 2 3this.$confirm("Are you sure?").then(() => { 4 //do something... 5});
1// in any component 2 3this.$prompt("Input your name").then(text => { 4 // do somthing with text 5});
Global options can be set when initialize plugin. Refer to sweetalert2 documentation
1// main.js 2import Vue from "vue"; 3import VueSimpleAlert from "vue-simple-alert"; 4 5Vue.use(VueSimpleAlert, { reverseButtons: true });
You can use sweetalert2's fire() method through $fire(). For detailed usage, refer to sweetalert2 documentation.
1// in any component 2 3this.$fire({ 4 title: "Title", 5 text: "text", 6 type: "success", 7 timer: 3000 8}).then(r => { 9 console.log(r.value); 10});
The alert() method displays an alert box with a specified message and an OK button.
Optional. Specifies the text to display in the alert box
Optional. Specifies title of the alert box
Optional. Specifies icon type.
Optional. Advanced options. Refer to sweetalert2 documentation.
Will be resolved with true when alert box closed.
The confirm() method displays a dialog box with a specified message, along with an OK and a Cancel button.
Optional. Specifies the text to display in the confirm box
Optional. Specifies title of the confirm box
Optional. Specifies icon type.
Optional. Advanced options. Refer to sweetalert2 documentation.
Will be resolved when OK button clicked. If confirm box closed by any other reason, this promise will be rejected.
The prompt() method displays a dialog box that prompts the user for input.
Required. Specifies the text to display in the dialog box
Optional. The default input text
Optional. Specifies title of the confirm box
Optional. Specifies icon type.
Optional. Advanced options. Refer to sweetalert2 documentation.
Will be resolved with input text when OK button clicked. If the user clicks OK without entering any text, promise will be resolved with an empty string. If dialog box closed by any other reason, this promise will be rejected.
We use SemVer for versioning. For the versions available, see the tags on this repository.
This project is licensed under the MIT License - see the LICENSE file for details
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/9 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
110 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-02-03
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 Morevue-sweetalert2
Simple Vue sweetalert2 package
@vuesimple/vs-alert
A simple vue alert. Perfect for all your alert scenarios.
vue-snap-alert
SnapAlert is a lightweight Vue 3 plugin that provides customizable and user-friendly alert notifications , Easily display alerts, confirmations, and prompts in your Vue applications with simple methods and flexible options.
vuejs-dialog
A lightweight, promise based alert, prompt and confirm dialog