{"id":28799244,"url":"https://github.com/janlelis/exists","last_synced_at":"2025-08-09T23:05:30.996Z","repository":{"id":30314382,"uuid":"33866187","full_name":"janlelis/exists","owner":"janlelis","description":"Turns null objects into nil","archived":false,"fork":false,"pushed_at":"2021-01-06T11:48:07.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-03T17:57:52.024Z","etag":null,"topics":["null","nullobject","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/janlelis.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"MIT-LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-13T12:05:00.000Z","updated_at":"2021-01-06T11:48:05.000Z","dependencies_parsed_at":"2022-08-03T15:13:37.059Z","dependency_job_id":null,"html_url":"https://github.com/janlelis/exists","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/janlelis/exists","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janlelis%2Fexists","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janlelis%2Fexists/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janlelis%2Fexists/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janlelis%2Fexists/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janlelis","download_url":"https://codeload.github.com/janlelis/exists/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janlelis%2Fexists/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269631469,"owners_count":24450223,"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","status":"online","status_checked_at":"2025-08-09T02:00:10.424Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["null","nullobject","ruby"],"created_at":"2025-06-18T06:04:48.766Z","updated_at":"2025-08-09T23:05:30.968Z","avatar_url":"https://github.com/janlelis.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# exists [![[version]](https://badge.fury.io/rb/exists.svg)](https://badge.fury.io/rb/exists) [![[ci]](https://github.com/janlelis/exists/workflows/Test/badge.svg)](https://github.com/janlelis/exists/actions?query=workflow%3ATest)\n\nLike ActiveSupport's presence, but for [Object#null?](https://github.com/janlelis/null_question)\n\nFor example, this is useful when setting defaults via or: `object.exists || other_object`\n\n## Setup\n\nAdd to your **Gemfile**:\n\n```ruby\ngem 'exists'\n```\n\n## Usage\n\n```ruby\nclass NullObject\n  def null?\n    true\n  end\nend\n\nnil.exists #=\u003e nil\nNullObject.new.exists #=\u003e nil\n\"some object\".exists #=\u003e \"some object\"\n```\n\n## MIT License\n\nCopyright (C) 2015 Jan Lelis \u003chttps://janlelis.com\u003e. Released under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanlelis%2Fexists","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanlelis%2Fexists","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanlelis%2Fexists/lists"}