{"id":17227237,"url":"https://github.com/lili21/svelte-toast","last_synced_at":"2025-07-03T23:33:45.974Z","repository":{"id":20624273,"uuid":"90457471","full_name":"lili21/svelte-toast","owner":"lili21","description":"simple toast .","archived":false,"fork":false,"pushed_at":"2023-01-05T16:37:58.000Z","size":491,"stargazers_count":9,"open_issues_count":16,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T01:14:31.638Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lili21.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-06T11:11:54.000Z","updated_at":"2023-03-17T12:08:14.000Z","dependencies_parsed_at":"2023-01-14T07:00:27.707Z","dependency_job_id":null,"html_url":"https://github.com/lili21/svelte-toast","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/lili21/svelte-toast","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lili21%2Fsvelte-toast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lili21%2Fsvelte-toast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lili21%2Fsvelte-toast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lili21%2Fsvelte-toast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lili21","download_url":"https://codeload.github.com/lili21/svelte-toast/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lili21%2Fsvelte-toast/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263421460,"owners_count":23464012,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T04:18:38.005Z","updated_at":"2025-07-03T23:33:45.922Z","avatar_url":"https://github.com/lili21.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svelte-toast\n\u003e a simple toast written by svelte\n\n### Demo\n\n[svelte-toast.surge.sh](https://svelte-toast.surge.sh/)\n\n### Installation\n\n```\nyarn add svelte-toast\n```\n\n### Usage\n\n```\nimport Toast from 'svelte-toast'\n\nconst toast = new Toast([opts])\ntoast.show('Hello Svelte'[, opts])\ntoast.info('Hello Svelte'[, opts])\ntoast.success('Hello Svelte'[, opts])\ntoast.error('Hello Svelte'[, opts])\n```\n\n### Options\n\noption       | description | values  | default\n------------ | ----------- | ------- | -------\nposition     | position of toast     | 'top-left', 'top-center', 'top-right', 'bottom-left', 'bottom-center', 'bottom-right' | 'bottom-center'\nduration     | display time of toast | in millisecond | 2000\nborderRadius | border radius styling | in pixels | 0\n\n### Lisence\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flili21%2Fsvelte-toast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flili21%2Fsvelte-toast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flili21%2Fsvelte-toast/lists"}