{"id":15059723,"url":"https://github.com/thoughtbot/expirable","last_synced_at":"2025-04-10T05:41:53.245Z","repository":{"id":62419598,"uuid":"139187037","full_name":"thoughtbot/expirable","owner":"thoughtbot","description":"Manage values that expire after a period of time.","archived":false,"fork":false,"pushed_at":"2021-09-24T16:06:40.000Z","size":41,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T06:54:38.975Z","etag":null,"topics":["elm","elm-lang"],"latest_commit_sha":null,"homepage":"http://package.elm-lang.org/packages/thoughtbot/expirable/latest","language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thoughtbot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-29T19:19:10.000Z","updated_at":"2023-01-11T11:27:58.000Z","dependencies_parsed_at":"2022-11-01T17:00:38.547Z","dependency_job_id":null,"html_url":"https://github.com/thoughtbot/expirable","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoughtbot%2Fexpirable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoughtbot%2Fexpirable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoughtbot%2Fexpirable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoughtbot%2Fexpirable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thoughtbot","download_url":"https://codeload.github.com/thoughtbot/expirable/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248166308,"owners_count":21058475,"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":["elm","elm-lang"],"created_at":"2024-09-24T22:47:02.264Z","updated_at":"2025-04-10T05:41:53.226Z","avatar_url":"https://github.com/thoughtbot.png","language":"Elm","readme":"# Expirable\n\nManage values that expire after a period of time.\n\n## Example\n\n```elm\nimport Expirable exposing (Expirable)\n\n\ntype alias Model =\n    { toastMessages : List (Expirable String)\n    }\n\n\ntype Msg\n    = DecrementToastMessages Time.Posix\n\n\ninitial : Model\ninitial =\n    { toastMessages =\n        [ Expirable.build (Expirable.seconds 5) \"Hi there\"\n        , Expirable.build (Expirable.seconds 30) \"This goes longer\"\n        ]\n    }\n\n\nsubscriptions : Model -\u003e Sub Msg\nsubscriptions model =\n    Expirable.subscription DecrementToastMessages\n\n\nupdate : Msg -\u003e Model -\u003e ( Model, Cmd Msg )\nupdate msg model =\n    case msg of\n        DecrementToastMessages time -\u003e\n            ( { model\n                | toastMessages = Expirable.tickAll time model.toastMessages\n              }\n            , Cmd.none\n            )\n```\n\n## Development\n\nTo set up a working development environment, run:\n\n```sh\nyarn\n```\n\nEnsure that this project's `node_modules/.bin` is at the beginning\nof your `$PATH`, ensuring that any local NPM packages have the\nhighest priority.\n\nTo ensure the package compiles:\n\n```sh\nyarn build\n```\n\nTo run tests:\n\n```sh\nyarn test\n```\n\n## License\n\nSee the [LICENSE](/LICENSE) file.\n\n## About thoughtbot\n\n![thoughtbot](http://presskit.thoughtbot.com/images/thoughtbot-logo-for-readmes.svg)\n\nExpirable is maintained and funded by thoughtbot, inc.\nThe names and logos for thoughtbot are trademarks of thoughtbot, inc.\n\nWe love open source software!\nSee [our other projects][community] or\n[hire us][hire] to design, develop, and grow your product.\n\n[community]: https://thoughtbot.com/community?utm_source=github\n[hire]: https://thoughtbot.com/hire-us?utm_source=github\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoughtbot%2Fexpirable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthoughtbot%2Fexpirable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoughtbot%2Fexpirable/lists"}