Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
toastify-js
Advanced tools
Changelog
[1.2.0] - 2018-03-05
destination
and close
options is used at the same timeReadme
Toastify is a lightweight, vanilla JS toast notification library.
npm install --save toastify-js
or
yarn add toastify-js -S
import Toastify from 'toastify-js'
To start using Toastify, add the following CSS on to your page.
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css">
And the script at the bottom of the page
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/toastify-js"></script>
Files are delivered via the CDN service provided by jsdeliver
Toastify({
text: "This is a toast",
duration: 3000,
destination: 'https://github.com/apvarun/toastify-js',
newWindow: true,
close: true,
gravity: "top", // `top` or `bottom`
positionLeft: true, // `true` or `false`
backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)"
}).showToast();
Toast messages will be centered on devices with screen width less than 360px.
IE / Edge | Firefox | Chrome | Safari | Opera |
---|---|---|---|---|
IE10, IE11, Edge | last 10 versions | last 10 versions | last 10 versions | last 10 versions |
MIT © Varun A P
FAQs
Toastify is a lightweight, vanilla JS toast notification library.
The npm package toastify-js receives a total of 35,925 weekly downloads. As such, toastify-js popularity was classified as popular.
We found that toastify-js 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 now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.