{"_id":"toastr","_rev":"46-5a73369b33301471431e4cf0cfb5cc62","name":"toastr","description":"ToastrJS is a JavaScript library for Gnome / Growl type non-blocking notifications. jQuery is required. The goal is to create a simple core library that can be customized and extended.","dist-tags":{"latest":"2.1.4"},"versions":{"2.0.3":{"name":"toastr","filename":"js/toastr.min.js","version":"2.0.3","description":"ToastrJS is a JavaScript library for Gnome / Growl type non-blocking notifications. jQuery is required. The goal is to create a simple core library that can be customized and extended.","homepage":"http://www.toastrjs.com","keywords":["Toastr","ToastrJS","toastr.js"],"maintainers":[{"name":"durango","email":"me@danieldurante.com"}],"repository":{"type":"git","url":"git://github.com/CodeSeven/toastr.git"},"bugs":{"url":"http://stackoverflow.com/questions/tagged/toastr"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"devDependencies":{"grunt-contrib-uglify":"~0.2.2","grunt-contrib-less":"~0.6.4","grunt-contrib-qunit":"~0.2.2"},"scripts":{"test":"grunt"},"_id":"toastr@2.0.3","dist":{"shasum":"24aaa8169d5af4325438a5992dce8e0d64e6e29d","tarball":"https://registry.npmjs.org/toastr/-/toastr-2.0.3.tgz","integrity":"sha512-67lXtFmkbd/BtA/v17BkeyCWSounNXkGJsC/RO9x3H0EACgeyZZ5ynLFxzMEplz3mUEG4H5tgIAME2yGqMVPMg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDuyNR2UjUPoWzw8pvf7L+OaGfuVPIG+83PqYF9WJT2EwIhAP6ZtEwGlU4wkAyHcviQhrhibe0m9DlvAU4kFzeQWmeC"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"durango","email":"me@danieldurante.com"},"directories":{}},"2.0.4":{"name":"toastr","filename":"js/toastr.min.js","main":"toastr.js","version":"2.0.4","description":"ToastrJS is a JavaScript library for Gnome / Growl type non-blocking notifications. jQuery is required. The goal is to create a simple core library that can be customized and extended.","homepage":"http://www.toastrjs.com","keywords":["Toastr","ToastrJS","toastr.js"],"maintainers":[{"name":"durango","email":"me@danieldurante.com"}],"repository":{"type":"git","url":"git://github.com/CodeSeven/toastr.git"},"bugs":{"url":"http://stackoverflow.com/questions/tagged/toastr"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"devDependencies":{"grunt-contrib-uglify":"~0.2.2","grunt-contrib-less":"~0.6.4","grunt-contrib-qunit":"~0.2.2"},"scripts":{"test":"grunt"},"_id":"toastr@2.0.4","dist":{"shasum":"748aad39454bd873e57f72848b6a599a0f9152de","tarball":"https://registry.npmjs.org/toastr/-/toastr-2.0.4.tgz","integrity":"sha512-FHFnEfnzIqPw2DjDlQVrZUG45CSpenYhY3QObi8dWaQKtL8Wn8rTN76ngLG4ryEpbMWvYu4+yqspIBym1yhqQg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8cKPbQIWM+S/84RKWAE0Og/o1t/5QwRnuBr4WyZRbFAIgI4n345k4jhJTdGjg7824k20e3lZhTCF2xlPLvNZ4jZ4="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"durango","email":"me@danieldurante.com"},"directories":{}},"2.1.0":{"name":"toastr","filename":"js/toastr.min.js","main":"toastr.js","style":"./toastr.min.css","version":"2.1.0","description":"ToastrJS is a JavaScript library for Gnome / Growl type non-blocking notifications. jQuery is required. The goal is to create a simple core library that can be customized and extended.","homepage":"http://www.toastrjs.com","keywords":["Toastr","ToastrJS","toastr.js"],"maintainers":[{"name":"durango","email":"me@danieldurante.com"},{"name":"timferrell","email":"timothyferrell+npm@gmail.com"}],"repository":{"type":"git","url":"git://github.com/CodeSeven/toastr.git"},"bugs":{"url":"http://stackoverflow.com/questions/tagged/toastr"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"devDependencies":{"del":"^0.1.3","glob":"^4.0.6","grunt-contrib-less":"~0.6.4","grunt-contrib-uglify":"~0.2.2","gulp":"^3.8.10","gulp-bytediff":"^0.2.0","gulp-jscs":"^1.3.0","gulp-jshint":"^1.9.0","gulp-load-plugins":"^0.7.1","gulp-load-utils":"0.0.4","gulp-minify-css":"^0.3.11","gulp-rename":"^1.2.0","gulp-sourcemaps":"^1.2.8","gulp-task-listing":"^0.3.0","gulp-uglify":"^1.0.1","gulp-util":"^3.0.1","jquery":"^2.1.1","jshint-stylish":"^1.0.0","karma":"^0.12.25","karma-coverage":"^0.2.6","karma-phantomjs-launcher":"^0.1.4","karma-qunit":"^0.1.3","merge-stream":"^0.1.6","phantomjs":"^1.9.7-15","plato":"^1.2.2","qunitjs":"~1.14.0"},"scripts":{"test":"gulp test"},"_id":"toastr@2.1.0","_shasum":"5dd0b7dfe9ebbd0c003d2b0a46e4c62b7d122ea2","_from":".","_npmVersion":"2.12.0","_nodeVersion":"1.6.3","_npmUser":{"name":"timferrell","email":"timothyferrell+npm@gmail.com"},"dist":{"shasum":"5dd0b7dfe9ebbd0c003d2b0a46e4c62b7d122ea2","tarball":"https://registry.npmjs.org/toastr/-/toastr-2.1.0.tgz","integrity":"sha512-3A8LQaIQndKVzaEO5uyeQa7UqKyDnus/MM+T/ZYGAn+d2oEonfRm+uJtYGvwKlKkO9xKA74EotWi8ckVeIjHoA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE9mMOtUzhiSPl4PIoanruIcKtVHeIzcJ4XXa6ZgliSgAiEA2aX4UgJSpIGfLbJNkkPJZBL0mtXULrNLdMrCY9NB1uQ="}]},"directories":{}},"2.1.2":{"name":"toastr","filename":"build/toastr.min.js","main":"toastr.js","style":"build/toastr.min.css","version":"2.1.2","description":"ToastrJS is a JavaScript library for Gnome / Growl type non-blocking notifications. jQuery is required. The goal is to create a simple core library that can be customized and extended.","homepage":"http://www.toastrjs.com","keywords":["Toastr","ToastrJS","toastr.js"],"maintainers":[{"name":"durango","email":"me@danieldurante.com"},{"name":"timferrell","email":"timothyferrell+npm@gmail.com"}],"repository":{"type":"git","url":"git://github.com/CodeSeven/toastr.git"},"bugs":{"url":"http://stackoverflow.com/questions/tagged/toastr"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"devDependencies":{"del":"^0.1.3","glob":"^4.0.6","gulp":"^3.8.10","gulp-bytediff":"^0.2.0","gulp-jscs":"^1.3.0","gulp-jshint":"^1.9.0","gulp-less":"^3.0.3","gulp-load-plugins":"^0.7.1","gulp-load-utils":"0.0.4","gulp-minify-css":"^0.3.11","gulp-rename":"^1.2.0","gulp-sourcemaps":"^1.2.8","gulp-task-listing":"^0.3.0","gulp-uglify":"^1.0.1","gulp-util":"^3.0.1","jquery":"^2.1.1","jshint-stylish":"^1.0.0","karma":"^0.12.25","karma-coverage":"^0.2.6","karma-phantomjs-launcher":"^0.1.4","karma-qunit":"^0.1.3","merge-stream":"^0.1.6","phantomjs":"^1.9.7-15","plato":"^1.2.2","qunitjs":"~1.14.0"},"scripts":{"test":"gulp test"},"gitHead":"b957ae9f38e6856346a0200e83281b08ca717a7d","_id":"toastr@2.1.2","_shasum":"fd69066ae7578a5b3357725fc9c7c335e9b681df","_from":".","_npmVersion":"2.12.0","_nodeVersion":"1.6.3","_npmUser":{"name":"timferrell","email":"timothyferrell+npm@gmail.com"},"dist":{"shasum":"fd69066ae7578a5b3357725fc9c7c335e9b681df","tarball":"https://registry.npmjs.org/toastr/-/toastr-2.1.2.tgz","integrity":"sha512-XPH5ooY3zDYQH73YfygvWZ0WwR59Ic6LJ5ommaONnP0S/dC13wApYoTgtjjoBD8+qnEssPr2HU8N3gFsqKRdNw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6HYVMCpx0ILy8J/2Ic3TGcKDzX/IY57LiIaPalBodWgIgCN8gRx0cTmITbUPwUA6QRlRMIGWMRIsDTYqagSw7ei0="}]},"directories":{}},"2.1.4":{"name":"toastr","filename":"build/toastr.min.js","main":"toastr.js","style":"build/toastr.min.css","version":"2.1.4","description":"ToastrJS is a JavaScript library for Gnome / Growl type non-blocking notifications. jQuery is required. The goal is to create a simple core library that can be customized and extended.","homepage":"http://www.toastrjs.com","keywords":["Toastr","ToastrJS","toastr.js"],"maintainers":[{"name":"timferrell","email":"timothyferrell+npm@gmail.com"}],"repository":{"type":"git","url":"git://github.com/CodeSeven/toastr.git"},"bugs":{"url":"http://stackoverflow.com/questions/tagged/toastr"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"dependencies":{"jquery":">=1.12.0"},"devDependencies":{"gulp":"^3.8.10","gulp-bytediff":"^0.2.0","gulp-jscs":"^1.3.0","gulp-jshint":"^1.9.0","gulp-less":"^3.0.3","gulp-load-plugins":"^0.7.1","gulp-load-utils":"0.0.4","gulp-minify-css":"^0.3.11","gulp-rename":"^1.2.0","gulp-sourcemaps":"^1.2.8","gulp-task-listing":"^0.3.0","gulp-uglify":"^1.0.1","gulp-util":"^3.0.1","jquery":"^2.1.1","jshint-stylish":"^1.0.0","karma":"^0.12.25","karma-coverage":"^0.2.6","karma-phantomjs-launcher":"^0.1.4","karma-qunit":"^0.1.3","merge-stream":"^0.1.6","phantomjs":"^1.9.7-15","plato":"^1.2.2","qunitjs":"~1.14.0"},"scripts":{"test":"gulp test"},"gitHead":"1ef00d723691b563b610077a08539391386826b3","_id":"toastr@2.1.4","_shasum":"8b43be64fb9d0c414871446f2db8e8ca4e95f181","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.12.1","_npmUser":{"name":"timferrell","email":"timothyferrell+npm@gmail.com"},"dist":{"shasum":"8b43be64fb9d0c414871446f2db8e8ca4e95f181","tarball":"https://registry.npmjs.org/toastr/-/toastr-2.1.4.tgz","integrity":"sha512-LIy77F5n+sz4tefMmFOntcJ6HL0Fv3k1TDnNmFZ0bU/GcvIIfy6eG2v7zQmMiYgaalAiUv75ttFrPn5s0gyqlA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGnaDet2u62yFQWro+sZmcgW+PeWcTM2R8m5jz5VBAvqAiEAkgext0iSwCNbMGk8kbhTb8TcyCEojZ2y8i8nKetQ0F8="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/toastr-2.1.4.tgz_1512703281692_0.2893252761568874"},"directories":{}}},"readme":"# toastr\n**toastr** is a Javascript library for non-blocking notifications. jQuery is required. The goal is to create a simple core library that can be customized and extended.\n\n[![Build Status](https://travis-ci.org/CodeSeven/toastr.svg)](https://travis-ci.org/CodeSeven/toastr)\nBrowser testing provided by BrowserStack.\n\n## Current Version\n2.1.4\n\n## Demo\n- Demo can be found at http://codeseven.github.io/toastr/demo.html\n- [Demo using FontAwesome icons with toastr](http://plnkr.co/edit/6W9URNyyp2ItO4aUWzBB?p=preview)\n\n## [CDNjs](https://cdnjs.com/libraries/toastr.js)\nToastr is hosted at CDN JS\n\n#### Debug\n- [//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.css](//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.css)\n\n#### Minified\n- [//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js](//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js)\n- [//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.css](//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.css)\n\n## Install\n\n#### [NuGet Gallery](http://nuget.org/packages/toastr)\n```\nInstall-Package toastr\n```\n\n#### [Bower](http://bower.io/search/?q=toastr)\n```\nbower install toastr\n```\n\n#### [npm](https://www.npmjs.com/package/toastr)\n```\nnpm install --save toastr\n```\n\n#### [Ruby on Rails](https://github.com/tylergannon/toastr-rails)\n```ruby\n# Gemfile\n\ngem 'toastr-rails'\n```\n\n```coffee\n# application.coffee\n\n#= require toastr\n```\n\n```scss\n// application.scss\n\n@import \"toastr\";\n```\n\n\n\n\n## Wiki and Change Log\n[Wiki including Change Log](https://github.com/CodeSeven/toastr/wiki)\n\n## Breaking Changes\n\n#### Animation Changes\nThe following animations options have been deprecated and should be replaced:\n\n - Replace `options.fadeIn` with `options.showDuration`\n - Replace `options.onFadeIn` with `options.onShown`\n - Replace `options.fadeOut` with `options.hideDuration`\n - Replace `options.onFadeOut` with `options.onHidden`\n\n## Quick Start\n\n### 3 Easy Steps\nFor other API calls, see the [demo](http://codeseven.github.io/toastr/demo.html).\n\n1. Link to toastr.css `<link href=\"toastr.css\" rel=\"stylesheet\"/>`\n\n2. Link to toastr.js `<script src=\"toastr.js\"></script>`\n\n3. use toastr to display a toast for info, success, warning or error\n\t```js\n\t// Display an info toast with no title\n\ttoastr.info('Are you the 6 fingered man?')\n\t```\n\n### Other Options\n```js\n// Display a warning toast, with no title\ntoastr.warning('My name is Inigo Montoya. You killed my father, prepare to die!')\n\n// Display a success toast, with a title\ntoastr.success('Have fun storming the castle!', 'Miracle Max Says')\n\n// Display an error toast, with a title\ntoastr.error('I do not think that word means what you think it means.', 'Inconceivable!')\n\n// Immediately remove current toasts without using animation\ntoastr.remove()\n\n// Remove current toasts using animation\ntoastr.clear()\n\n// Override global options\ntoastr.success('We do have the Kapua suite available.', 'Turtle Bay Resort', {timeOut: 5000})\n```\n\n### Escape HTML characters\nIn case you want to escape HTML characters in title and message\n\n\ttoastr.options.escapeHtml = true;\n\n### Close Button\nOptionally enable a close button\n```js\ntoastr.options.closeButton = true;\n````\n\nOptionally override the close button's HTML.\n\n```js\ntoastr.options.closeHtml = '<button><i class=\"icon-off\"></i></button>';\n```\n\nYou can also override the CSS/LESS for `#toast-container .toast-close-button`\n\nOptionally override the hide animation when the close button is clicked (falls back to hide configuration).\n```js\ntoastr.options.closeMethod = 'fadeOut';\ntoastr.options.closeDuration = 300;\ntoastr.options.closeEasing = 'swing';\n```\n\n### Display Sequence\nShow newest toast at bottom (top is default)\n```js\ntoastr.options.newestOnTop = false;\n```\n\n### Callbacks\n```js\n// Define a callback for when the toast is shown/hidden/clicked\ntoastr.options.onShown = function() { console.log('hello'); }\ntoastr.options.onHidden = function() { console.log('goodbye'); }\ntoastr.options.onclick = function() { console.log('clicked'); }\ntoastr.options.onCloseClick = function() { console.log('close button clicked'); }\n```\n\n### Animation Options\nToastr will supply default animations, so you do not have to provide any of these settings. However you have the option to override the animations if you like.\n\n#### Easings\nOptionally override the animation easing to show or hide the toasts. Default is swing. swing and linear are built into jQuery.\n```js\ntoastr.options.showEasing = 'swing';\ntoastr.options.hideEasing = 'linear';\ntoastr.options.closeEasing = 'linear';\n```\n\nUsing the jQuery Easing plugin (http://www.gsgd.co.uk/sandbox/jquery/easing/)\n```js\ntoastr.options.showEasing = 'easeOutBounce';\ntoastr.options.hideEasing = 'easeInBack';\ntoastr.options.closeEasing = 'easeInBack';\n```\n\n#### Animation Method\nUse the jQuery show/hide method of your choice. These default to fadeIn/fadeOut. The methods fadeIn/fadeOut, slideDown/slideUp, and show/hide are built into jQuery.\n```js\ntoastr.options.showMethod = 'slideDown';\ntoastr.options.hideMethod = 'slideUp';\ntoastr.options.closeMethod = 'slideUp';\n```\n\n### Prevent Duplicates\nRather than having identical toasts stack, set the preventDuplicates property to true. Duplicates are matched to the previous toast based on their message content.\n```js\ntoastr.options.preventDuplicates = true;\n```\n\n### Timeouts\nControl how toastr interacts with users by setting timeouts appropriately. Timeouts can be disabled by setting them to 0.\n```js\ntoastr.options.timeOut = 30; // How long the toast will display without user interaction\ntoastr.options.extendedTimeOut = 60; // How long the toast will display after a user hovers over it\n```\n\n\n### Progress Bar\nVisually indicate how long before a toast expires.\n```js\ntoastr.options.progressBar = true;\n```\n\n### rtl\nFlip the toastr to be displayed properly for right-to-left languages.\n```js\ntoastr.options.rtl = true;\n```\n\n## Building Toastr\n\nTo build the minified and css versions of Toastr you will need [node](http://nodejs.org) installed. (Use Homebrew or Chocolatey.)\n\n```\nnpm install -g gulp karma-cli\nnpm install\n```\n\nAt this point the dependencies have been installed and you can build Toastr\n\n- Run the analytics `gulp analyze`\n- Run the test `gulp test`\n- Run the build `gulp`\n\n## Contributing\n\nFor a pull request to be considered it must resolve a bug, or add a feature which is beneficial to a large audience.\n\nPull requests must pass existing unit tests, CI processes, and add additional tests to indicate successful operation of a new feature, or the resolution of an identified bug.\n\nRequests must be made against the `develop` branch. Pull requests submitted against the `master` branch will not be considered.\n\nAll pull requests are subject to approval by the repository owners, who have sole discretion over acceptance or denial.\n\n## Authors\n**John Papa**\n\n+ [http://twitter.com/John_Papa](http://twitter.com/John_Papa)\n\n**Tim Ferrell**\n\n+ [http://twitter.com/ferrell_tim](http://twitter.com/ferrell_tim)\n\n**Hans Fjällemark**\n\n+ [http://twitter.com/hfjallemark](http://twitter.com/hfjallemark)\n\n## Credits\nInspired by https://github.com/Srirangan/notifer.js/.\n\n## Copyright\nCopyright © 2012-2015\n\n## License\ntoastr is under MIT license - http://www.opensource.org/licenses/mit-license.php\n","maintainers":[{"name":"timferrell","email":"timothyferrell+npm@gmail.com"}],"time":{"modified":"2022-06-27T07:27:10.585Z","created":"2014-07-24T17:43:50.496Z","2.0.3":"2014-07-24T17:43:50.496Z","2.0.4":"2014-07-24T17:55:19.302Z","2.1.1":"2015-06-29T03:34:28.714Z","2.1.0":"2015-06-29T04:04:03.922Z","2.1.2":"2015-08-10T03:11:39.424Z","2.1.3":"2017-01-07T02:35:56.030Z","2.1.4":"2017-12-08T03:21:23.204Z"},"homepage":"http://www.toastrjs.com","keywords":["Toastr","ToastrJS","toastr.js"],"repository":{"type":"git","url":"git://github.com/CodeSeven/toastr.git"},"bugs":{"url":"http://stackoverflow.com/questions/tagged/toastr"},"readmeFilename":"README.md","users":{"jeanpokou":true,"alexandermac":true,"justincann":true,"ongmin":true,"ux_web":true,"fend25":true,"richard534":true,"zhouanbo":true,"parsifal":true,"kaapex":true,"fabrianibrahim":true,"wuyangwang":true,"abuelwafa":true,"larrychen":true,"clementoh":true,"jk6":true,"maniktyagi":true,"yuch4n":true,"chinawolf_wyp":true,"ryanadolphson":true,"nisimjoseph":true,"npmrud5g":true,"ivan.marquez":true,"noxracing":true,"mdecker":true,"belcour":true}}