Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
vue-toastr-2
Advanced tools
Readme
Simple toast notifications for Vue.js
https://unpkg.com/vue-toastr-2/dist/vue-toastr-2
unpkg.com provides NPM-based CDN links. The above link will always point to the latest release on NPM. You can also use a specific version/tag via URLs like https://unpkg.com/vue-toastr-2@0.0.0/dist/vue-toastr-2.js
Include vue-toastr-2 after Vue and it will install itself automatically:
<script src="https://unpkg.com/vue/dist/vue.js"></script>
<script src="https://unpkg.com/vue-toastr-2/dist/vue-toastr-2.js"></script>
<link rel="stylesheet" href="https://unpkg.com/vue-toastr-2/dist/vue-toastr-2.min.css">
These dependencies are required to use vue-toastr-2 while using npm
$ npm install jquery
$ npm install toastr
$ npm install vue-toastr-2
$ yarn add jquery
$ yarn add toastr
$ yarn add vue-toastr-2
When used with a module system, you must explicitly install the vue-toastr-2
via Vue.use()
:
import Vue from 'vue'
import VueToastr2 from 'vue-toastr-2'
import 'vue-toastr-2/dist/vue-toastr-2.min.css'
window.toastr = require('toastr')
Vue.use(VueToastr2)
You don't need to do this when using global script tags.
The notifications can be triggered from the components using this.$toastr property.
For documentation of options, look at toastr
this.$toastr.success('Message', 'Title', options);
this.$toastr.error('Message', 'Title', options);
this.$toastr.warning('Message', 'Title', options);
this.$toastr.info('Message', 'Title', options);
You will have to clone directly from GitHub and build vue-toastr-2
yourself if
you want to use the latest dev build.
$ git clone https://github.com/saivarunk/vue-toastr-2.git node_modules/vue-toastr-2
$ cd node_modules/vue-toastr-2
$ npm install
$ npm run build
Details changes for each release are documented in the CHANGELOG.md.
Please make sure to read the Issue Reporting Checklist before opening an issue. Issues not conforming to the guidelines may be closed immediately.
Please make sure to read the Contributing Guide before making a pull request.
FAQs
Simple toast notifications for Vue.js
The npm package vue-toastr-2 receives a total of 874 weekly downloads. As such, vue-toastr-2 popularity was classified as not popular.
We found that vue-toastr-2 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.