{"id":15102999,"url":"https://github.com/trychlos/pwix-tolert","last_synced_at":"2026-02-03T20:04:12.119Z","repository":{"id":91959531,"uuid":"594084710","full_name":"trychlos/pwix-tolert","owner":"trychlos","description":"A Bootstrap-based Meteor package which provides a toast-alert combination to display auto-remove messages","archived":false,"fork":false,"pushed_at":"2024-06-13T09:40:40.000Z","size":190,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-13T05:49:58.721Z","etag":null,"topics":["alert","auto-dismiss","bootstrap","meteor","toast"],"latest_commit_sha":null,"homepage":"","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/trychlos.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-27T15:08:17.000Z","updated_at":"2024-06-13T09:40:41.000Z","dependencies_parsed_at":"2024-06-13T12:21:42.239Z","dependency_job_id":"9f74c5fd-0919-4577-86fd-c25af530f86e","html_url":"https://github.com/trychlos/pwix-tolert","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/trychlos/pwix-tolert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trychlos%2Fpwix-tolert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trychlos%2Fpwix-tolert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trychlos%2Fpwix-tolert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trychlos%2Fpwix-tolert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trychlos","download_url":"https://codeload.github.com/trychlos/pwix-tolert/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trychlos%2Fpwix-tolert/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29055625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T15:43:47.601Z","status":"ssl_error","status_checked_at":"2026-02-03T15:43:46.709Z","response_time":96,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["alert","auto-dismiss","bootstrap","meteor","toast"],"created_at":"2024-09-25T19:09:59.573Z","updated_at":"2026-02-03T20:04:12.087Z","avatar_url":"https://github.com/trychlos.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pwix:tolert\n\n## What is it ?\n\nA client-only Meteor package which provides a combination of Bootstrap Toasts and Alerts:\n- as toast, the provided message automatically disappear after a (configurable) timeout\n- as alert, we may have a distinct color for a distinct information level.\n\nHere the 'tolerts' are displayed on the top-right corner of the window.\n\n_Disclaimer_: this is not my own idea, but don't remember where I have found that, most probably on SO.\n\n## Installation\n\nThis Meteor package is installable with the usual command:\n\n```sh\n    meteor add pwix:tolert\n```\n\n## Usage\n\nVery simple indeed. Just import the globally exported object, and enjoy:\n\n```js\n    import { Tolert } from 'meteor/pwix:tolert';\n    ...\n    Tolert.info( 'An information message' );\n```\n\n## Provides\n\n### `Tolert`\n\nThe exported `Tolert` global object provides following items:\n\n#### Functions\n\nAll are only available on the client side.\n\n##### `Tolert.success()`\n\n![success](/maintainer/png/success.png)\n\n##### `Tolert.error()`\n\n![error](/maintainer/png/error.png)\n\n##### `Tolert.warning()`\n\n![warning](/maintainer/png/warning.png)\n\n##### `Tolert.info()`\n\n![info](/maintainer/png/info.png)\n\nThe four previous functions use the corresponding Bootstrap color codes as a colored background of the tolert.\n\n##### `Tolert.pull()`\n\nErase the oldest message.\n\nNote: the oldest message is normally automatically erased after the configured timeout. This method is mainly defined for tests purposes.\n\n### Blaze components\n\n#### `tlMessage`\n\nThis is just a placeholder that you have to include anywhere in your application main layout:\n\n```html\n    {{\u003e tlMessage }}\n```\n\nIt will not take any place inside your layout as only (temporarily) visible over the window.\n\n## Configuration\n\nThe package's behavior can be configured through a call to the `Tolert.configure()` method, with just a single javascript object argument, which itself should only contains the options you want override.\n\nPackage is very simple, has a single configuration option:\n\n- `stackFromTop`\n\n    Whether the messages are stackable from the top of the screen ?\n\n    Defauts to `true`.\n\n    When `false`, messages are stacked from the bottom of the screen.\n\n- `timeout`\n\n    The timeout, in ms, to erase the displayed message.\n\n    Defaut value is 3 seconds (3000 ms).\n\n    Any value less or equal to zero disables the timeout.\n\n- `verbosity`\n\n    The verbosity level.\n\n    Can be `Tolert.C.Verbose.NONE` or an or-ed combination of following values:\n\n    - `Tolert.C.Verbose.CONFIGURE`\n\n        Trace configuration actions and their result.\n\n    - `Tolert.C.Verbose.TIMEOUT`\n\n        Trace messages insertions and deletions.\n\n    Defaut value is `Tolert.C.Verbose.NONE`.\n\nPlease note, as an explicit reminder, that, because the Meteor packages are instanciated at application level, they can be configured once at most, and only once at most. Each addtionnal call to `Tolert.configure()` will just override the previous one. You have been warned: **only the application should configure a package**.\n\n## NPM peer dependencies\n\nStarting with v 1.1.0, and in accordance with advices from [the Meteor Guide](https://guide.meteor.com/writing-atmosphere-packages.html#peer-npm-dependencies), we no more hardcode NPM dependencies in the `Npm.depends` clause of the `package.js`.\n\nInstead we check npm versions of installed packages at runtime, on server startup, in development environment.\n\nDependencies as of v 1.5.0:\n\n```js\n    'lodash': '^4.17.21'\n```\n\nEach of these dependencies should be installed at application level:\n\n```sh\n    meteor npm install \u003cpackage\u003e --save\n```\n\n## Translations\n\nNone at the moment.\n\n## Cookies and comparable technologies\n\nNone at the moment.\n\n## Issues \u0026 help\n\nIn case of support or error, please report your issue request to our [Issues tracker](https://github.com/trychlos/pwix-tolert/issues).\n\n---\nP. Wieser\n- Last updated on 2024, Jun. 13th\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrychlos%2Fpwix-tolert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrychlos%2Fpwix-tolert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrychlos%2Fpwix-tolert/lists"}