{"id":20337651,"url":"https://github.com/hugoalh/is-primitive-es","last_synced_at":"2026-01-27T09:40:31.795Z","repository":{"id":226699313,"uuid":"769076242","full_name":"hugoalh/is-primitive-es","owner":"hugoalh","description":"An ECMAScript module to determine whether the item is a primitive.","archived":false,"fork":false,"pushed_at":"2025-12-15T13:25:45.000Z","size":159,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-12T00:21:44.453Z","etag":null,"topics":["ecmascript","ecmascript-module","es","es-module","esm","esmodule","is","javascript","js","primitive","ts","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hugoalh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-03-08T09:45:46.000Z","updated_at":"2025-10-09T09:42:02.000Z","dependencies_parsed_at":"2024-03-09T04:31:16.882Z","dependency_job_id":"7a20deed-5497-4bfa-9370-cf546b2869cd","html_url":"https://github.com/hugoalh/is-primitive-es","commit_stats":null,"previous_names":["hugoalh-studio/is-primitive-ts","hugoalh-studio/is-primitive-es"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/hugoalh/is-primitive-es","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugoalh%2Fis-primitive-es","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugoalh%2Fis-primitive-es/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugoalh%2Fis-primitive-es/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugoalh%2Fis-primitive-es/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hugoalh","download_url":"https://codeload.github.com/hugoalh/is-primitive-es/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugoalh%2Fis-primitive-es/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28811047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T07:41:26.337Z","status":"ssl_error","status_checked_at":"2026-01-27T07:41:08.776Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["ecmascript","ecmascript-module","es","es-module","esm","esmodule","is","javascript","js","primitive","ts","typescript"],"created_at":"2024-11-14T21:09:41.206Z","updated_at":"2026-01-27T09:40:31.787Z","avatar_url":"https://github.com/hugoalh.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Is Primitive (ES)\n\n[**⚖️** MIT](./LICENSE.md)\n\n[![GitHub: hugoalh/is-primitive-es](https://img.shields.io/github/v/release/hugoalh/is-primitive-es?label=hugoalh/is-primitive-es\u0026labelColor=181717\u0026logo=github\u0026logoColor=ffffff\u0026sort=semver\u0026style=flat \"GitHub: hugoalh/is-primitive-es\")](https://github.com/hugoalh/is-primitive-es)\n[![JSR: @hugoalh/is-primitive](https://img.shields.io/jsr/v/@hugoalh/is-primitive?label=@hugoalh/is-primitive\u0026labelColor=F7DF1E\u0026logo=jsr\u0026logoColor=000000\u0026style=flat \"JSR: @hugoalh/is-primitive\")](https://jsr.io/@hugoalh/is-primitive)\n[![NPM: @hugoalh/is-primitive](https://img.shields.io/npm/v/@hugoalh/is-primitive?label=@hugoalh/is-primitive\u0026labelColor=CB3837\u0026logo=npm\u0026logoColor=ffffff\u0026style=flat \"NPM: @hugoalh/is-primitive\")](https://www.npmjs.com/package/@hugoalh/is-primitive)\n\nAn ECMAScript module to determine whether the item is a primitive.\n\n## 🎯 Targets\n\n| **Runtime \\\\ Source** | **GitHub Raw** | **JSR** | **NPM** |\n|:--|:-:|:-:|:-:|\n| **[Bun](https://bun.sh/)** \u003e= v1.1.0 | ❌ | ✔️ | ✔️ |\n| **[Deno](https://deno.land/)** \u003e= v2.1.0 | ✔️ | ✔️ | ✔️ |\n| **[NodeJS](https://nodejs.org/)** \u003e= v20.9.0 | ❌ | ✔️ | ✔️ |\n\n## 🛡️ Runtime Permissions\n\nThis does not request any runtime permission.\n\n## #️⃣ Sources\n\n- GitHub Raw\n  ```\n  https://raw.githubusercontent.com/hugoalh/is-primitive-es/{Tag}/mod.ts\n  ```\n- JSR\n  ```\n  jsr:@hugoalh/is-primitive[@{Tag}]\n  ```\n- NPM\n  ```\n  npm:@hugoalh/is-primitive[@{Tag}]\n  ```\n\n\u003e [!NOTE]\n\u003e - It is recommended to include tag for immutability.\n\u003e - These are not part of the public APIs hence should not be used:\n\u003e   - Benchmark/Test file (e.g.: `example.bench.ts`, `example.test.ts`).\n\u003e   - Entrypoint name or path include any underscore prefix (e.g.: `_example.ts`, `foo/_example.ts`).\n\u003e   - Identifier/Namespace/Symbol include any underscore prefix (e.g.: `_example`, `Foo._example`).\n\n## ⤵️ Entrypoints\n\n| **Name** | **Path** | **Description** |\n|:--|:--|:--|\n| `.` | `./mod.ts` | Default. |\n\n## 🧩 APIs\n\n- ```ts\n  function isPrimitive(item: unknown): item is Primitive;\n  ```\n- ```ts\n  type Primitive = bigint | boolean | number | string | symbol | null | undefined;\n  ```\n\n\u003e [!NOTE]\n\u003e - For the full or prettier documentation, can visit via:\n\u003e   - [Deno CLI `deno doc`](https://docs.deno.com/runtime/reference/cli/doc/)\n\u003e   - [JSR](https://jsr.io/@hugoalh/is-primitive)\n\n## ✍️ Examples\n\n- ```ts\n  isPrimitive({});\n  //=\u003e false\n  ```\n- ```ts\n  isPrimitive(new Headers());\n  //=\u003e false\n  ```\n- ```ts\n  isPrimitive(true);\n  //=\u003e true\n  ```\n- ```ts\n  isPrimitive(123n);\n  //=\u003e true\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugoalh%2Fis-primitive-es","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugoalh%2Fis-primitive-es","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugoalh%2Fis-primitive-es/lists"}