{"id":19002489,"url":"https://github.com/younho9/not","last_synced_at":"2026-05-15T18:08:12.501Z","repository":{"id":57169851,"uuid":"440565433","full_name":"younho9/not","owner":"younho9","description":"Type guard based on exclude","archived":false,"fork":false,"pushed_at":"2021-12-21T15:38:49.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-29T17:45:49.769Z","etag":null,"topics":["guard","guards","ts","type","type-guard","type-guards","types","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/younho9.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":"2021-12-21T15:33:18.000Z","updated_at":"2021-12-21T15:38:51.000Z","dependencies_parsed_at":"2022-08-27T12:01:46.467Z","dependency_job_id":null,"html_url":"https://github.com/younho9/not","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/younho9/not","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/younho9%2Fnot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/younho9%2Fnot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/younho9%2Fnot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/younho9%2Fnot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/younho9","download_url":"https://codeload.github.com/younho9/not/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/younho9%2Fnot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33074453,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["guard","guards","ts","type","type-guard","type-guards","types","typescript"],"created_at":"2024-11-08T18:15:22.458Z","updated_at":"2026-05-15T18:08:12.484Z","avatar_url":"https://github.com/younho9.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @younho9/not\n\n[![CI](https://github.com/younho9/not/actions/workflows/main.yml/badge.svg)](https://github.com/younho9/not/actions/workflows/main.yml)\n[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)\n\n\u003e Type guard based on exclude\n\n## Install\n\n```sh\n$ npm install @younho9/not\n```\n\n## Usage\n\n```ts\nimport not from '@younho9/not';\n\nconst isNullable = (value: unknown): value is null | undefined =\u003e\n\tvalue === null || value === undefined;\n\nconst isNonNullable = not(isNullable);\n\ndeclare const someValue: string | null | undefined;\n\nif (isNonNullable(someValue)) {\n\tsomeValue;\n\t//=\u003e string\n}\n```\n\n## LICENSE\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyounho9%2Fnot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyounho9%2Fnot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyounho9%2Fnot/lists"}