{"_id":"@bling-yshs/tauri-plugin-toast","name":"@bling-yshs/tauri-plugin-toast","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@bling-yshs/tauri-plugin-toast","version":"0.0.1","author":{"name":"bling-yshs"},"description":"A Tauri plugin for showing toast notifications on Android","license":"MIT","type":"module","types":"./dist-js/index.d.ts","main":"./dist-js/index.cjs","module":"./dist-js/index.js","exports":{"types":"./dist-js/index.d.ts","import":"./dist-js/index.js","require":"./dist-js/index.cjs"},"dependencies":{"@tauri-apps/api":"^2.0.0"},"devDependencies":{"@rollup/plugin-typescript":"^12.0.0","rollup":"^4.9.6","typescript":"^5.3.3","tslib":"^2.6.2"},"scripts":{"build":"rollup -c","pretest":"pnpm build"},"_id":"@bling-yshs/tauri-plugin-toast@0.0.1","_integrity":"sha512-xOx8z+y4g3AK8vIl9gs+Wa1NF/pUv6AG9uhrobu0SU7QjhdHkGNv2nTN+i2h3/xdo6lH9pT0DwK9hhuIM71YAQ==","_resolved":"C:\\Users\\yshs\\AppData\\Local\\Temp\\478fddbb8f75bbd132c784ec860a207d\\bling-yshs-tauri-plugin-toast-0.0.1.tgz","_from":"file:bling-yshs-tauri-plugin-toast-0.0.1.tgz","_nodeVersion":"22.16.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-xOx8z+y4g3AK8vIl9gs+Wa1NF/pUv6AG9uhrobu0SU7QjhdHkGNv2nTN+i2h3/xdo6lH9pT0DwK9hhuIM71YAQ==","shasum":"5c75369746d284a83d070cfb55e455569718a50f","tarball":"https://registry.npmjs.org/@bling-yshs/tauri-plugin-toast/-/tauri-plugin-toast-0.0.1.tgz","fileCount":6,"unpackedSize":3454,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIA2oF+7vCLDMLltqwXIKsF1Ks6fJ74cwF1fpgdnhiv5jAiBgNOyMol2Ed/e7E5uubG3a17GSSO2SSEtljEa2misbSA=="}]},"_npmUser":{"name":"bling-yshs","email":"mcyishan2@gmail.com"},"directories":{},"maintainers":[{"name":"bling-yshs","email":"mcyishan2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/tauri-plugin-toast_0.0.1_1756277223071_0.9755068650682477"},"_hasShrinkwrap":false}},"time":{"created":"2025-08-27T06:47:02.991Z","0.0.1":"2025-08-27T06:47:03.259Z","modified":"2025-08-27T06:47:03.535Z"},"maintainers":[{"name":"bling-yshs","email":"mcyishan2@gmail.com"}],"description":"A Tauri plugin for showing toast notifications on Android","author":{"name":"bling-yshs"},"license":"MIT","readme":"# Tauri Plugin Toast\r\n\r\nThis plugin provides a simple way to show toast notifications in your Tauri application. This is a mobile-only plugin that supports Android platform.\r\n\r\n## Usage\r\n\r\n```javascript\r\nimport { showToast } from '@bling-yshs/tauri-plugin-toast'\r\n\r\n// Show a short toast message\r\nawait showToast('Hello, world!')\r\n\r\n// Show a long toast message\r\nawait showToast('This is a long message that will be displayed for a longer duration', 'long')\r\n```\r\n\r\n## API\r\n\r\n### `showToast(message: string, duration: 'short' | 'long' = 'short'): Promise<boolean>`\r\n\r\nShows a toast notification with the specified message and duration.\r\n\r\n- `message`: The message to display in the toast\r\n- `duration`: The duration for which the toast should be displayed ('short' or 'long')\r\n\r\nReturns a promise that resolves to `true` if the toast was successfully displayed, `false` otherwise.","readmeFilename":"README.md","_rev":"1-3a93a6b46d827922d72cd231046d778f"}