{"_id":"@codewithajoydas/toastmaster","_rev":"6-62078c7507635e5775634b8ea4473c57","name":"@codewithajoydas/toastmaster","dist-tags":{"latest":"3.0.0"},"versions":{"2.3.1":{"name":"@codewithajoydas/toastmaster","version":"2.3.1","keywords":["toast","notification","javascript","ui","alert","codewithajoydas"],"author":{"name":"Ajoy Das"},"license":"MIT","_id":"@codewithajoydas/toastmaster@2.3.1","maintainers":[{"name":"codewithajoydas","email":"codewithajoydas@gmail.com"}],"homepage":"https://github.com/codewithajoydas/toastmaster#readme","bugs":{"url":"https://github.com/codewithajoydas/toastmaster/issues"},"dist":{"shasum":"b994f2ae5f09e0353f50bfeb6e1f627d2ac8920a","tarball":"https://registry.npmjs.org/@codewithajoydas/toastmaster/-/toastmaster-2.3.1.tgz","fileCount":5,"integrity":"sha512-NLxkWUCwiLGnWNEtYTQlBy8sSinQE4rFpkmV4c+8De5e60it4cvMFEAktm8uAwd0qy++/qiQ+/9Ts10D8HUczg==","signatures":[{"sig":"MEQCIH2hcS3QpV7DUWOrbtudlTSjnJXUGSNcl7gpahYIuUscAiA72U+uVFDobj986+FWziBHl70HIwu+NU/CMt1/1Fa8rw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12231},"main":"dist/toaster.min.js","gitHead":"b8d692918af6930a205c885035e915a173e33314","scripts":{"build":"npm run minify:js && npm run minify:css","minify:js":"terser src/index.js -o dist/toaster.min.js -c -m","minify:css":"cleancss -o dist/toaster.min.css src/style.css"},"_npmUser":{"name":"codewithajoydas","email":"codewithajoydas@gmail.com"},"repository":{"url":"git+https://github.com/codewithajoydas/toastmaster.git","type":"git"},"_npmVersion":"11.6.2","description":"A lightweight, customizable toast notification library for the web.","directories":{},"_nodeVersion":"25.0.0","dependencies":{"terser":"^5.44.0","clean-css-cli":"^5.6.3"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/toastmaster_2.3.1_1762020293679_0.06363661472323168","host":"s3://npm-registry-packages-npm-production"}},"2.3.2":{"name":"@codewithajoydas/toastmaster","version":"2.3.2","keywords":["toast","notification","javascript","ui","alert","codewithajoydas"],"author":{"name":"Ajoy Das"},"license":"MIT","_id":"@codewithajoydas/toastmaster@2.3.2","maintainers":[{"name":"codewithajoydas","email":"codewithajoydas@gmail.com"}],"homepage":"https://github.com/codewithajoydas/Toastmaster#readme","bugs":{"url":"https://github.com/codewithajoydas/Toastmaster/issues"},"dist":{"shasum":"0a43b4b9a1ca639ee1933327d771b26003dc7e84","tarball":"https://registry.npmjs.org/@codewithajoydas/toastmaster/-/toastmaster-2.3.2.tgz","fileCount":5,"integrity":"sha512-EIqu/VKGlBt+MqwBlzHTrm6hLvFaNE0KZ+c1fGDIvS5lz85X5mJbalZ3nce3oPE+whEa0JRenTl7EUiZoI+QMA==","signatures":[{"sig":"MEUCIEGYUdM12soqmyeldR3HPfAsej61LXRLk1QM2VGsdbAFAiEAhrZ9VvwXzt4RP8AOqYALWOVgs5SdS2dX/bcH0UbCJgQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12231},"main":"dist/toaster.min.js","gitHead":"a680b3843aa5a3fe1147b8eb381b2dd4244cb6b7","scripts":{"build":"npm run minify:js && npm run minify:css","minify:js":"terser src/index.js -o dist/toaster.min.js -c -m","minify:css":"cleancss -o dist/toaster.min.css src/style.css"},"_npmUser":{"name":"codewithajoydas","email":"codewithajoydas@gmail.com"},"repository":{"url":"git+https://github.com/codewithajoydas/Toastmaster.git","type":"git"},"_npmVersion":"11.6.2","description":"A lightweight, customizable toast notification library for the web.","directories":{},"_nodeVersion":"25.0.0","dependencies":{"terser":"^5.44.0","clean-css-cli":"^5.6.3"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/toastmaster_2.3.2_1762020683405_0.6365979900080356","host":"s3://npm-registry-packages-npm-production"}},"2.3.3":{"name":"@codewithajoydas/toastmaster","version":"2.3.3","keywords":["toast","notification","javascript","ui","alert","codewithajoydas"],"author":{"name":"Ajoy Das"},"license":"MIT","_id":"@codewithajoydas/toastmaster@2.3.3","maintainers":[{"name":"codewithajoydas","email":"codewithajoydas@gmail.com"}],"homepage":"https://github.com/codewithajoydas/Toastmaster#readme","bugs":{"url":"https://github.com/codewithajoydas/Toastmaster/issues"},"dist":{"shasum":"7fede99a4b3e6ef70aeb4337df2c58cefae35ed6","tarball":"https://registry.npmjs.org/@codewithajoydas/toastmaster/-/toastmaster-2.3.3.tgz","fileCount":4,"integrity":"sha512-lguMQbk8KxztCXTwxDqvvImaBXgw+Dfbiz6h57lsdtxGjZvGO5aGHTl5LfHF91wkmpH/qdRN31IPY0zj4u7m3g==","signatures":[{"sig":"MEUCIQDRYFijnafHCRhKTnm8Bzs+kwRTBSVNYqeMmR/lIOaV2QIgbSfYOOqYCZkenpC/AEYGmI0ridMY4A219yZ0VlaX/+w=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5738},"main":"dist/toaster.min.js","style":"dist/toaster.min.css","gitHead":"a680b3843aa5a3fe1147b8eb381b2dd4244cb6b7","scripts":{"build":"npm run minify:js && npm run minify:css","minify:js":"terser src/index.js -o dist/toaster.min.js -c -m","minify:css":"cleancss -o dist/toaster.min.css src/style.css"},"_npmUser":{"name":"codewithajoydas","email":"codewithajoydas@gmail.com"},"repository":{"url":"git+https://github.com/codewithajoydas/Toastmaster.git","type":"git"},"_npmVersion":"11.6.2","description":"A lightweight, customizable toast notification library for the web.","directories":{},"_nodeVersion":"25.0.0","dependencies":{"terser":"^5.44.0","clean-css-cli":"^5.6.3"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/toastmaster_2.3.3_1762021366013_0.719256406100262","host":"s3://npm-registry-packages-npm-production"}},"2.3.4":{"name":"@codewithajoydas/toastmaster","version":"2.3.4","keywords":["toast","notification","javascript","ui","alert","codewithajoydas"],"author":{"name":"Ajoy Das"},"license":"MIT","_id":"@codewithajoydas/toastmaster@2.3.4","maintainers":[{"name":"codewithajoydas","email":"codewithajoydas@gmail.com"}],"homepage":"https://github.com/codewithajoydas/Toastmaster#readme","bugs":{"url":"https://github.com/codewithajoydas/Toastmaster/issues"},"dist":{"shasum":"81f5557f31ccac117279ebbaf6775e159993d777","tarball":"https://registry.npmjs.org/@codewithajoydas/toastmaster/-/toastmaster-2.3.4.tgz","fileCount":4,"integrity":"sha512-HyZ7qdt22+SsxD+o1hJMcbSdlxXlR1xBXoziaGjY+1+SX7t/rkIcr8MfIHMXSlQjXw7S263t7v0LU/oGv7tbkw==","signatures":[{"sig":"MEQCID4QT1UViI8uq7MQDDCmLrI48wT+ksOExnFXTuD0lIeHAiAlwxX2qJwCI38toPtP5wfVvf9chbv8vJjHwJxvcU8MEw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5738},"main":"dist/toaster.min.js","style":"dist/toaster.min.css","gitHead":"a680b3843aa5a3fe1147b8eb381b2dd4244cb6b7","scripts":{"build":"npm run minify:js && npm run minify:css","minify:js":"terser src/index.js -o dist/toaster.min.js -c -m","minify:css":"cleancss -o dist/toaster.min.css src/style.css"},"_npmUser":{"name":"codewithajoydas","email":"codewithajoydas@gmail.com"},"repository":{"url":"git+https://github.com/codewithajoydas/Toastmaster.git","type":"git"},"_npmVersion":"11.6.2","description":"A lightweight, customizable toast notification library for the web.","directories":{},"_nodeVersion":"25.0.0","dependencies":{"terser":"^5.44.0","clean-css-cli":"^5.6.3"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/toastmaster_2.3.4_1762022149216_0.9126374089233382","host":"s3://npm-registry-packages-npm-production"}},"2.3.5":{"name":"@codewithajoydas/toastmaster","version":"2.3.5","keywords":["toast","notification","javascript","ui","alert","codewithajoydas"],"author":{"name":"Ajoy Das"},"license":"MIT","_id":"@codewithajoydas/toastmaster@2.3.5","maintainers":[{"name":"codewithajoydas","email":"codewithajoydas@gmail.com"}],"homepage":"https://github.com/codewithajoydas/Toastmaster#readme","bugs":{"url":"https://github.com/codewithajoydas/Toastmaster/issues"},"dist":{"shasum":"882baa9319d8713302a5065174a3ef2c06f4cbc4","tarball":"https://registry.npmjs.org/@codewithajoydas/toastmaster/-/toastmaster-2.3.5.tgz","fileCount":4,"integrity":"sha512-24StPsVAEY5eXYNPiTR9+uaBeU8qBvBMT+cG6vtMw9qK02JkfdTYdU8u+z8nNMRWU2MoHftQbM3oAN86rsgKfQ==","signatures":[{"sig":"MEQCIAudpU6MLoWlOpmhxKPB//d7eFCLQq8O1xub059pq4fFAiBBOtYMSqZgL+H69bX/RYY6M3YBjSnfDdpXxP9+h6Nv6g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5732},"main":"dist/toaster.min.js","style":"dist/toaster.min.css","gitHead":"a680b3843aa5a3fe1147b8eb381b2dd4244cb6b7","scripts":{"build":"npm run minify:js && npm run minify:css","minify:js":"terser src/index.js -o dist/toaster.min.js -c -m","minify:css":"cleancss -o dist/toaster.min.css src/style.css"},"_npmUser":{"name":"codewithajoydas","email":"codewithajoydas@gmail.com"},"repository":{"url":"git+https://github.com/codewithajoydas/Toastmaster.git","type":"git"},"_npmVersion":"11.6.2","description":"A lightweight, customizable toast notification library for the web.","directories":{},"_nodeVersion":"25.0.0","dependencies":{"terser":"^5.44.0","clean-css-cli":"^5.6.3"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/toastmaster_2.3.5_1762022455376_0.060760102820963446","host":"s3://npm-registry-packages-npm-production"}},"3.0.0":{"name":"@codewithajoydas/toastmaster","version":"3.0.0","description":"A lightweight, customizable toast notification library for the web.","main":"dist/toaster.min.js","style":"dist/toaster.min.css","keywords":["toast","notification","javascript","ui","alert","codewithajoydas"],"author":{"name":"Ajoy Das"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/codewithajoydas/Toastmaster.git"},"scripts":{"build":"npm run minify:js && npm run minify:css","minify:js":"terser src/index.js -o dist/toaster.min.js -c -m","minify:css":"cleancss -o dist/toaster.min.css src/style.css"},"dependencies":{"clean-css-cli":"^5.6.3","terser":"^5.44.0"},"gitHead":"667a39c06dc6516fcdebabd2bc2046f2e3a39179","_id":"@codewithajoydas/toastmaster@3.0.0","bugs":{"url":"https://github.com/codewithajoydas/Toastmaster/issues"},"homepage":"https://github.com/codewithajoydas/Toastmaster#readme","_nodeVersion":"25.0.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-rNUuf9T6gpG2zovtMESwwMWbYb/m+vrqvzxXfJPHp5y9Ie9WqEGXG+tO6DibPIO4/tyG1T1mrcMhfQGDOxw7hQ==","shasum":"58a7bd4e6e5405495251d3ea2e9ca364bdecdc2b","tarball":"https://registry.npmjs.org/@codewithajoydas/toastmaster/-/toastmaster-3.0.0.tgz","fileCount":4,"unpackedSize":9801,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCkFzxl4CB9nDZDTFoW2LnbqbLjIpGMT9S4qKBnCWo3AwIhAPAu0krf/ZhnfmkYMS2Ok/6ab2bXQntCP8l2aZVRJ/zU"}]},"_npmUser":{"name":"codewithajoydas","email":"codewithajoydas@gmail.com"},"directories":{},"maintainers":[{"name":"codewithajoydas","email":"codewithajoydas@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/toastmaster_3.0.0_1762420368753_0.9151940183392191"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-01T18:04:53.621Z","modified":"2025-11-06T09:12:49.110Z","2.3.1":"2025-11-01T18:04:53.893Z","2.3.2":"2025-11-01T18:11:23.591Z","2.3.3":"2025-11-01T18:22:46.190Z","2.3.4":"2025-11-01T18:35:49.412Z","2.3.5":"2025-11-01T18:40:55.583Z","3.0.0":"2025-11-06T09:12:48.918Z"},"bugs":{"url":"https://github.com/codewithajoydas/Toastmaster/issues"},"author":{"name":"Ajoy Das"},"license":"MIT","homepage":"https://github.com/codewithajoydas/Toastmaster#readme","keywords":["toast","notification","javascript","ui","alert","codewithajoydas"],"repository":{"type":"git","url":"git+https://github.com/codewithajoydas/Toastmaster.git"},"description":"A lightweight, customizable toast notification library for the web.","maintainers":[{"name":"codewithajoydas","email":"codewithajoydas@gmail.com"}],"readme":"# Toastmaster – Lightweight & Customizable Toast Notifications\r\n\r\n**Toastmaster** is a lightweight, dependency-free JavaScript library for creating elegant, animated toast notifications in your web applications.\r\nIt’s easy to use, customizable, and available via both **npm** and **CDN**.\r\n\r\n---\r\n\r\n## Installation\r\n\r\n### Option 1: Using **npm**\r\n\r\n```bash\r\nnpm install @codewithajoydas/toastmaster\r\n```\r\n\r\nThen import it into your project:\r\n\r\n```js\r\nimport Toastmaster from \"@codewithajoydas/toastmaster\";\r\nimport \"@codewithajoydas/toastmaster/dist/toaster.min.css\";\r\n```\r\n\r\n---\r\n\r\n### Option 2: Using **CDN**\r\n\r\nAdd the following lines inside your HTML `<head>` or before the closing `<body>` tag:\r\n\r\n```html\r\n<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/@codewithajoydas/toastmaster@2.3.5/dist/toaster.min.css\">\r\n<script src=\"https://cdn.jsdelivr.net/npm/@codewithajoydas/toastmaster@2.3.5/dist/toaster.min.js\"></script>\r\n```\r\n\r\n---\r\n\r\n## Usage Example\r\n\r\n```html\r\n<script src=\"https://cdn.jsdelivr.net/npm/@codewithajoydas/toastmaster@2.3.5/dist/toaster.min.js\"></script>\r\n<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/@codewithajoydas/toastmaster@2.3.5/dist/toaster.min.css\">\r\n\r\n<script>\r\n  new Toastmaster({\r\n    title: \"Error\", // text displayed in the toast header\r\n    message: \"Please enter your email\", // main message body\r\n    type: \"error\", // success | error | info | warning\r\n    delay: 3000, // auto-close time in milliseconds\r\n    position: \"bottomRight\", // topRight | topLeft | bottomRight | bottomLeft\r\n    overRideDefaultstyle: false, // true = use your own CSS\r\n    callBackFuntion: () => {\r\n      console.log(\"Toast closed after timeout or manual close\");\r\n    }\r\n  }).showNotification();\r\n</script>\r\n\r\n```\r\n\r\n---\r\n\r\n## Available Options\r\n\r\n| Option                 | Type                                                       | Default         | Description                              |\r\n| ---------------------- | ---------------------------------------------------------- | --------------- | ---------------------------------------- |\r\n| `title`                | `string`                                                   | `\"\"`            | Title of the toast notification          |\r\n| `message`              | `string`                                                   | `\"\"`            | Message text displayed inside the toast  |\r\n| `delay`                | `number`                                                   | `3000`          | Duration before toast disappears (in ms) |\r\n| `type`                 | `\"success\" \\| \"error\" \\| \"info\" \\| \"warning\"`              | `\"info\"`        | Defines toast styling and icon           |\r\n| `position`             | `\"topRight\" \\| \"bottomRight\" \\| \"topLeft\" \\| \"bottomLeft\"` | `\"bottomRight\"` | Placement of toast on screen             |\r\n| `overRideDefaultstyle` | `boolean`                                                  | `false`         | Allows custom CSS overrides              |\r\n| `callBackFuntion`      | `function`                                                 | `null`          | Triggered after toast is removed         |\r\n\r\n---\r\n\r\n## Styling\r\n\r\nYou can fully customize Toastmaster’s look by overriding the default classes in your CSS:\r\n\r\n```css\r\n.toast.success {\r\n  background-color: #27ae60;\r\n  color: #fff;\r\n}\r\n.toast.error {\r\n  background-color: #e74c3c;\r\n}\r\n```\r\n\r\n---\r\n\r\n## File Structure\r\n\r\n```\r\ntoastmaster/\r\n│\r\n├── dist/\r\n│   ├── toaster.min.js\r\n│   └── toaster.min.css\r\n├── src/\r\n│   ├── toaster.js\r\n│   └── toaster.css\r\n├── package.json\r\n└── README.md\r\n```\r\n\r\n---\r\n\r\n##  Build & Development\r\n\r\nIf you want to modify and rebuild:\r\n\r\n```bash\r\nnpm run build\r\n```\r\n\r\nThis generates the minified files inside `/dist`.\r\n\r\n---\r\n\r\n##  Author\r\n\r\n**Developed by [Ajoy Das](https://codewithajoydas.live)**\r\n\r\n> Passionate about building elegant, minimal, and functional web tools.\r\n\r\n---\r\n\r\n##  License\r\n\r\n**MIT License**\r\nFeel free to use it in both personal and commercial projects.\r\n\r\n","readmeFilename":"README.md"}