{"id":29860396,"url":"https://github.com/a1exevs/ts-guards","last_synced_at":"2025-07-30T03:19:43.556Z","repository":{"id":269267160,"uuid":"906891216","full_name":"a1exevs/ts-guards","owner":"a1exevs","description":"Typescript guards","archived":false,"fork":false,"pushed_at":"2025-07-21T19:12:13.000Z","size":1650,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-07-21T21:28:55.994Z","etag":null,"topics":["type-guards","types","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@alexevs/ts-guards","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/a1exevs.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-22T08:09:39.000Z","updated_at":"2025-06-11T07:10:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"0cd3a2c5-3a6b-4c82-93f3-14812cdba92f","html_url":"https://github.com/a1exevs/ts-guards","commit_stats":null,"previous_names":["a1exevs/ts-guards"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/a1exevs/ts-guards","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a1exevs%2Fts-guards","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a1exevs%2Fts-guards/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a1exevs%2Fts-guards/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a1exevs%2Fts-guards/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a1exevs","download_url":"https://codeload.github.com/a1exevs/ts-guards/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a1exevs%2Fts-guards/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267803484,"owners_count":24146518,"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-07-30T02:00:09.044Z","response_time":70,"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":["type-guards","types","typescript"],"created_at":"2025-07-30T03:19:39.963Z","updated_at":"2025-07-30T03:19:43.548Z","avatar_url":"https://github.com/a1exevs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![TS Guards logo](https://raw.githubusercontent.com/a1exevs/ts-guards/main/logo.svg)\n\n# Description\nTypescript guards\n\n- Install the [npm package @alexevs/ts-guards](https://www.npmjs.com/package/@alexevs/ts-guards)\n  ```bash\n  // with npm\n  npm i @alexevs/ts-guards\n  // with yarn\n  yarn add @alexevs/ts-guards\n  ```\n\n- Use the package\n  ```typescript\n  import { \n    isNull,\n    isUndefined,\n    isNil, \n    isEmpty \n  } from '@alexevs/ts-guards';\n\n  console.log(isNull(null)); // true\n  \n  console.log(isUndefined(undefined)); // true\n  \n  console.log(isNil(null)); // true\n  console.log(isNil(undefined)); // true\n  \n  console.log(isEmpty(undefined)); // true\n  console.log(isEmpty(null)); // true\n  console.log(isEmpty(false)); // false\n  console.log(isEmpty(true)); // false\n  console.log(isEmpty(0)); // false\n  console.log(isEmpty(1)); // false\n  console.log(isEmpty('')); // true\n  console.log(isEmpty('str')); // false\n  console.log(isEmpty([])); // true\n  console.log(isEmpty([1, 2, 3])); // false\n  console.log(isEmpty({})); // true\n  console.log(isEmpty({ name: 'Alex' })); // false\n  ```\n\n## Why?\n\nEnhance your TypeScript projects with @alexevs/ts-guards!\n\nThis library provides a robust set of utility functions to simplify and streamline type-checking and guard validation in your code.\n\nWith ts-guards, you can ensure safer and readable type validation,\nimproving code reliability and reducing potential errors.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa1exevs%2Fts-guards","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa1exevs%2Fts-guards","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa1exevs%2Fts-guards/lists"}