{"_id":"@ads-talan/toastify-js","name":"@ads-talan/toastify-js","dist-tags":{"latest":"1.13.0-no-aria"},"versions":{"1.13.0-no-aria":{"name":"@ads-talan/toastify-js","version":"1.13.0-no-aria","description":"Fork of toastify-js without aria-live attributes","main":"./src/toastify.js","repository":{"type":"git","url":"git+https://github.com/apvarun/toastify-js.git"},"keywords":["toastify","javascript","notifications","toast"],"author":{"name":"Varun A P"},"license":"MIT","bugs":{"url":"https://github.com/apvarun/toastify-js/issues"},"homepage":"https://github.com/apvarun/toastify-js#readme","_id":"@ads-talan/toastify-js@1.13.0-no-aria","gitHead":"df31f8528f3939d76ed0acaf923efb976eb9184e","_nodeVersion":"23.11.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-ZzbCNznxhlvXnKpYzs4vvUnZPN/UFMxUyZGoNgrakoeqfAJ777yGbWQr0PA6JaG+Pcm5UhaOBIa0kNq7GtfmqQ==","shasum":"0ac51709bd48069e74c8ef9e101ef08b0ad01fae","tarball":"https://registry.npmjs.org/@ads-talan/toastify-js/-/toastify-js-1.13.0-no-aria.tgz","fileCount":15,"unpackedSize":79745,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDdZZyPdAYf2I0Nho/arv1prjqrddIYI1zenjodjx3c4wIgC7yCleuU7y/HMQQM0EPjJcU90e9xnKeJdKt8fR8jlDQ="}]},"_npmUser":{"name":"ads-talan","email":"alois.de-schepper@talan.com"},"directories":{},"maintainers":[{"name":"ads-talan","email":"alois.de-schepper@talan.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/toastify-js_1.13.0-no-aria_1769164432746_0.3215080161844337"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-23T10:33:52.666Z","1.13.0-no-aria":"2026-01-23T10:33:52.900Z","modified":"2026-01-23T10:33:53.095Z"},"maintainers":[{"name":"ads-talan","email":"alois.de-schepper@talan.com"}],"description":"Fork of toastify-js without aria-live attributes","homepage":"https://github.com/apvarun/toastify-js#readme","keywords":["toastify","javascript","notifications","toast"],"repository":{"type":"git","url":"git+https://github.com/apvarun/toastify-js.git"},"author":{"name":"Varun A P"},"bugs":{"url":"https://github.com/apvarun/toastify-js/issues"},"license":"MIT","readme":"\n# Toastify\n\n![Built with JavaScript](https://img.shields.io/badge/Built%20with-JavaScript-red?style=for-the-badge&logo=javascript)\n\n[![toastify-js](https://img.shields.io/badge/toastify--js-1.13.0-brightgreen.svg)](https://www.npmjs.com/package/toastify-js)\n![MIT License](https://img.shields.io/npm/l/toastify-js)\n\nToastify is a lightweight, vanilla JS toast notification library. Fork of toastify-js without aria-live attributes.\n\n## Demo\n\n[Click here](https://apvarun.github.io/toastify-js/)\n\n## Features\n\n* Multiple stacked notifications\n* Customizable\n* No blocking of execution thread\n\n### Customization options\n\n* Notification Text\n* Duration\n* Toast background color\n* Close icon display\n* Display position\n* Offset position\n\n## Installation\n\n#### Toastify now supports installation via NPM\n\n* Run the below command to add toastify-js to your existing or new project.\n\n```\nnpm install --save toastify-js\n```\n\nor\n\n```\nyarn add toastify-js -S\n```\n\n* Import toastify-js into your module to start using it.\n\n```\nimport Toastify from 'toastify-js'\n```\n\nYou can use the default CSS from Toastify as below and later override it or choose to write your own CSS.\n\n```\nimport \"toastify-js/src/toastify.css\"\n```\n\n#### Adding ToastifyJs to HTML page using the traditional method\n\nTo start using **Toastify**, add the following CSS on to your page.\n\n```html\n<link rel=\"stylesheet\" type=\"text/css\" href=\"https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css\">\n```\n\nAnd the script at the bottom of the page\n\n```html\n<script type=\"text/javascript\" src=\"https://cdn.jsdelivr.net/npm/toastify-js\"></script>\n```\n\n> Files are delivered via the CDN service provided by [jsdeliver](https://www.jsdelivr.com/)\n\n## Documentation\n\n```javascript\nToastify({\n  text: \"This is a toast\",\n  duration: 3000,\n  destination: \"https://github.com/apvarun/toastify-js\",\n  newWindow: true,\n  close: true,\n  gravity: \"top\", // `top` or `bottom`\n  position: \"left\", // `left`, `center` or `right`\n  stopOnFocus: true, // Prevents dismissing of toast on hover\n  style: {\n    background: \"linear-gradient(to right, #00b09b, #96c93d)\",\n  },\n  onClick: function(){} // Callback after click\n}).showToast();\n```\n\n> Toast messages will be centered on devices with screen width less than 360px.\n\n* See the [changelog](https://github.com/apvarun/toastify-js/blob/master/CHANGELOG.md)\n\n### Add own custom classes\n\nIf you want to use custom classes on the toast for customizing (like info or warning for example), you can do that as follows:\n\n```javascript\nToastify({\n  text: \"This is a toast\",\n  className: \"info\",\n  style: {\n    background: \"linear-gradient(to right, #00b09b, #96c93d)\",\n  }\n}).showToast();\n```\n\nMultiple classes also can be assigned as a string, with spaces between class names.\n\n### Add some offset\n\nIf you want to add offset to the toast, you can do that as follows:\n\n```javascript\nToastify({\n  text: \"This is a toast with offset\",\n  offset: {\n    x: 50, // horizontal axis - can be a number or a string indicating unity. eg: '2em'\n    y: 10 // vertical axis - can be a number or a string indicating unity. eg: '2em'\n  },\n}).showToast();\n```\n\nToast will be pushed 50px from right in x axis and 10px from top in y axis.\n\n**Note:**\n\nIf `position` is equals to `left`, it will be pushed from left.\nIf `gravity` is equals to `bottom`, it will be pushed from bottom.\n\n## API\n\n| Option Key | type | Usage | Defaults |\n|-----------------|----------------------|----------------------------------------------------------------------------|-------------|\n| text | string | Message to be displayed in the toast | \"Hi there!\" |\n| node | ELEMENT_NODE | Provide a node to be mounted inside the toast. `node` takes higher precedence over `text` |  |\n| duration | number | Duration for which the toast should be displayed.<br>-1 for permanent toast | 3000 |\n| selector | string \\| ELEMENT_NODE | ShadowRoot | CSS Selector or Element Node on which the toast should be added | body |\n| destination | URL string | URL to which the browser should be navigated on click of the toast |  |\n| newWindow | boolean | Decides whether the `destination` should be opened in a new window or not | false |\n| close | boolean | To show the close icon or not | false |\n| gravity | \"top\" or \"bottom\" | To show the toast from top or bottom | \"top\" |\n| position | \"left\" or \"right\" | To show the toast on left or right | \"right\" |\n| backgroundColor | CSS background value | To be deprecated, use `style.background` option instead. Sets the background color of the toast |  |\n| avatar | URL string | Image/icon to be shown before text |  |\n| className | string | Ability to provide custom class name for further customization |  |\n| stopOnFocus | boolean | To stop timer when hovered over the toast (Only if duration is set) | true |\n| callback | Function | Invoked when the toast is dismissed |  |\n| onClick | Function | Invoked when the toast is clicked |  |\n| offset | Object | Ability to add some offset to axis | |\n| escapeMarkup | boolean | Toggle the default behavior of escaping HTML markup | true |\n| style | object | Use the HTML DOM Style properties to add any style directly to toast | |\n| oldestFirst | boolean | Set the order in which toasts are stacked in page | true |\n\n> Deprecated properties: `backgroundColor` -  use `style.background` option instead\n\n## Browsers support\n\n| ![][ie]<br />IE / Edge | ![][firefox]<br />Firefox | ![][chrome]<br />Chrome | ![][safari]<br />Safari | ![][opera]<br />Opera |\n| ---------------------- | ------------------------- | ----------------------- | ----------------------- | --------------------- |\n| IE10, IE11, Edge       | last 10 versions          | last 10 versions        | last 10 versions        | last 10 versions      |\n\n## Contributors\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n\n<!-- prettier-ignore -->\n<table>\n  <tr>\n    <td align=\"center\">\n      <a href=\"https://github.com/AStoker\">\n        <img\n          alt=\"AStoker\"\n          src=\"https://avatars.githubusercontent.com/u/2907279?v=4\"\n          width=\"117\"\n        />\n        <br />\n        AStoker\n      </a>\n    </td>\n    <td align=\"center\">\n      <a href=\"https://github.com/caiomoura1994\">\n        <img\n          alt=\"caiomoura1994\"\n          src=\"https://avatars.githubusercontent.com/u/9389139?v=4\"\n          width=\"117\"\n        />\n        <br />\n        caiomoura1994\n      </a>\n    </td>\n    <td align=\"center\">\n      <a href=\"https://github.com/rndevfx\">\n        <img\n          alt=\"rndevfx\"\n          src=\"https://avatars.githubusercontent.com/u/5052076?v=4\"\n          width=\"117\"\n        />\n        <br />\n        rndevfx\n      </a>\n    </td>\n    <td align=\"center\">\n      <a href=\"https://github.com/1ess\">\n        <img\n          alt=\"1ess\"\n          src=\"https://avatars.githubusercontent.com/u/36092926?v=4\"\n          width=\"117\"\n        />\n        <br />\n        1ess\n      </a>\n    </td>\n    <td align=\"center\">\n      <a href=\"https://github.com/d4rn0k\">\n        <img\n          alt=\"d4rn0k\"\n          src=\"https://avatars.githubusercontent.com/u/2183269?v=4\"\n          width=\"117\"\n        />\n        <br />\n        d4rn0k\n      </a>\n    </td>\n    <td align=\"center\">\n      <a href=\"https://github.com/danielkaiser80\">\n        <img\n          alt=\"danielkaiser80\"\n          src=\"https://avatars.githubusercontent.com/u/33827555?v=4\"\n          width=\"117\"\n        />\n        <br />\n        danielkaiser80\n      </a>\n    </td>\n  </tr>\n  <tr>\n    <td align=\"center\">\n      <a href=\"https://github.com/skjnldsv\">\n        <img\n          alt=\"skjnldsv\"\n          src=\"https://avatars.githubusercontent.com/u/14975046?v=4\"\n          width=\"117\"\n        />\n        <br />\n        skjnldsv\n      </a>\n    </td>\n    <td align=\"center\">\n      <a href=\"https://github.com/chasedeanda\">\n        <img\n          alt=\"chasedeanda\"\n          src=\"https://avatars.githubusercontent.com/u/8203134?v=4\"\n          width=\"117\"\n        />\n        <br />\n        chasedeanda\n      </a>\n    </td>\n    <td align=\"center\">\n      <a href=\"https://github.com/chrisgraham\">\n        <img\n          alt=\"chrisgraham\"\n          src=\"https://avatars.githubusercontent.com/u/195389?v=4\"\n          width=\"117\"\n        />\n        <br />\n        chrisgraham\n      </a>\n    </td>\n    <td align=\"center\">\n      <a href=\"https://github.com/Wachiwi\">\n        <img\n          alt=\"Wachiwi\"\n          src=\"https://avatars.githubusercontent.com/u/4199845?v=4\"\n          width=\"117\"\n        />\n        <br />\n        Wachiwi\n      </a>\n    </td>\n    <td align=\"center\">\n      <a href=\"https://github.com/FeixuRuins\">\n        <img\n          alt=\"FeixuRuins\"\n          src=\"https://avatars.githubusercontent.com/u/66232834?v=4\"\n          width=\"117\"\n        />\n        <br />\n        FeixuRuins\n      </a>\n    </td>\n    <td align=\"center\">\n      <a href=\"https://github.com/gavinhungry\">\n        <img\n          alt=\"gavinhungry\"\n          src=\"https://avatars.githubusercontent.com/u/744538?v=4\"\n          width=\"117\"\n        />\n        <br />\n        gavinhungry\n      </a>\n    </td>\n  </tr>\n  <tr>\n    <td align=\"center\">\n      <a href=\"https://github.com/haydster7\">\n        <img\n          alt=\"haydster7\"\n          src=\"https://avatars.githubusercontent.com/u/4540595?v=4\"\n          width=\"117\"\n        />\n        <br />\n        haydster7\n      </a>\n    </td>\n    <td align=\"center\">\n      <a href=\"https://github.com/joaquinwojcik\">\n        <img\n          alt=\"joaquinwojcik\"\n          src=\"https://avatars.githubusercontent.com/u/3205737?v=4\"\n          width=\"117\"\n        />\n        <br />\n        joaquinwojcik\n      </a>\n    </td>\n    <td align=\"center\">\n      <a href=\"https://github.com/juliushaertl\">\n        <img\n          alt=\"juliushaertl\"\n          src=\"https://avatars.githubusercontent.com/u/3404133?v=4\"\n          width=\"117\"\n        />\n        <br />\n        juliushaertl\n      </a>\n    </td>\n    <td align=\"center\">\n      <a href=\"https://github.com/mort3za\">\n        <img\n          alt=\"mort3za\"\n          src=\"https://avatars.githubusercontent.com/u/510242?v=4\"\n          width=\"117\"\n        />\n        <br />\n        mort3za\n      </a>\n    </td>\n    <td align=\"center\">\n      <a href=\"https://github.com/Sandip124\">\n        <img\n          alt=\"Sandip124\"\n          src=\"https://avatars.githubusercontent.com/u/37034590?v=4\"\n          width=\"117\"\n        />\n        <br />\n        Sandip124\n      </a>\n    </td>\n    <td align=\"center\">\n      <a href=\"https://github.com/Tadaz\">\n        <img\n          alt=\"Tadaz\"\n          src=\"https://avatars.githubusercontent.com/u/10881931?v=4\"\n          width=\"117\"\n        />\n        <br />\n        Tadaz\n      </a>\n    </td>\n  </tr>\n  <tr>\n    <td align=\"center\">\n      <a href=\"https://github.com/t12ung\">\n        <img\n          alt=\"t12ung\"\n          src=\"https://avatars.githubusercontent.com/u/9781423?v=4\"\n          width=\"117\"\n        />\n        <br />\n        t12ung\n      </a>\n    </td>\n    <td align=\"center\">\n      <a href=\"https://github.com/victorfeijo\">\n        <img\n          alt=\"victorfeijo\"\n          src=\"https://avatars.githubusercontent.com/u/8865899?v=4\"\n          width=\"117\"\n        />\n        <br />\n        victorfeijo\n      </a>\n    </td>\n    <td align=\"center\">\n      <a href=\"https://github.com/fiatjaf\">\n        <img\n          alt=\"fiatjaf\"\n          src=\"https://avatars.githubusercontent.com/u/1653275?v=4\"\n          width=\"117\"\n        />\n        <br />\n        fiatjaf\n      </a>\n    </td>\n    <td align=\"center\">\n      <a href=\"https://github.com/prousseau-korem\">\n        <img\n          alt=\"prousseau-korem\"\n          src=\"https://avatars.githubusercontent.com/u/59747802?v=4\"\n          width=\"117\"\n        />\n        <br />\n        prousseau-korem\n      </a>\n    </td>\n  </tr>\n</table>\n\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n## License\n\nMIT © [Varun A P](https://github.com/apvarun)\n\n<a href=\"https://www.buymeacoffee.com/apvarun\" target=\"_blank\" rel=\"noopener\"><img src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" height=\"40\" width=\"145\" alt=\"Buy Me A Coffee\"></a>\n\n[ie]: https://raw.githubusercontent.com/godban/browsers-support-badges/master/src/images/edge.png\n[firefox]: https://raw.githubusercontent.com/godban/browsers-support-badges/master/src/images/firefox.png\n[chrome]: https://raw.githubusercontent.com/godban/browsers-support-badges/master/src/images/chrome.png\n[safari]: https://raw.githubusercontent.com/godban/browsers-support-badges/master/src/images/safari.png\n[opera]: https://raw.githubusercontent.com/godban/browsers-support-badges/master/src/images/opera.png\n\n","readmeFilename":"README.md","_rev":"1-dac0cc519606ceb185b5a708baee9f79"}