{"id":20066443,"url":"https://github.com/martendebruijn/types","last_synced_at":"2025-07-02T09:03:57.563Z","repository":{"id":170729159,"uuid":"646730759","full_name":"martendebruijn/types","owner":"martendebruijn","description":"Personal common used types, type guards and other to quickly jumpstart a new project or experiment","archived":false,"fork":false,"pushed_at":"2025-06-21T07:22:47.000Z","size":363,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-21T07:29:54.927Z","etag":null,"topics":["type","typeguard","typeguards","types","typescript"],"latest_commit_sha":null,"homepage":"https://martendebruijn.github.io/types/","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/martendebruijn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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}},"created_at":"2023-05-29T08:01:01.000Z","updated_at":"2025-06-21T07:22:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"df31d303-0556-4735-9aab-f916fccde65a","html_url":"https://github.com/martendebruijn/types","commit_stats":null,"previous_names":["martendebruijn/types"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/martendebruijn/types","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martendebruijn%2Ftypes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martendebruijn%2Ftypes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martendebruijn%2Ftypes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martendebruijn%2Ftypes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/martendebruijn","download_url":"https://codeload.github.com/martendebruijn/types/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martendebruijn%2Ftypes/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263108754,"owners_count":23415002,"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":["type","typeguard","typeguards","types","typescript"],"created_at":"2024-11-13T13:58:26.219Z","updated_at":"2025-07-02T09:03:57.539Z","avatar_url":"https://github.com/martendebruijn.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @martendebruijn/types\n\n\u003ca href=\"https://www.npmjs.com/package/@martendebruijn/types\" title=\"@martendebruijn/types\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/v/%40martendebruijn%2Ftypes?labelColor=%23004225\u0026color=%23F5F5DC\"\n    alt=\"Types library by Marten de Bruijn\"/\u003e\n\u003c/a\u003e\n\nPersonal common used types, type guards and other to quickly jumpstart a new project\nor experiment.\n\n- [@martendebruijn/types](#martendebruijntypes)\n  - [Get started](#get-started)\n  - [Usage](#usage)\n    - [Type guards](#type-guards)\n    - [Types](#types)\n      - [JSON](#json)\n  - [Releases](#releases)\n  - [Contributing](#contributing)\n  - [Authors and acknowledgment](#authors-and-acknowledgment)\n  - [License](#license)\n\n## Get started\n\n```sh\nnpm install @martendebruijn/types\n```\n\n## Usage\n\n### Type guards\n\n- **[`isArray(x)`](./src/guards/isArray.ts)** - Is x an Array?\n- **[`isBigInt(x)`](./src/guards/isBigInt.ts)** - Is x a BigInt?\n- **[`isBool(x)`](./src/guards/isBool.ts)** - Is x a Boolean?\n- **[`isDate(x)`](./src/guards/isDate.ts)** - Is x a Date?\n- **[`isNull(x)`](./src/guards/isNull.ts)** - Is x Null?\n- **[`isDefined(x)`](./src/guards/isDefined.ts)** - Is x Defined?\n- **[`isEven(x)`](./src/guards/isEven.ts)** - Is x even?\n- **[`isFloat(x)`](./src/guards/isFloat.ts)** - Is x a float?\n- **[`isInfinity(x)`](./src/guards/isInfinity.ts)** - Is x Infinity?\n- **[`isInteger(x)`](./src/guards/isInteger.ts)** - Is x an integer?\n- **[`isMap(x)`](./src/guards/isMap.ts)** - Is x a Map?\n- **[`isNan(x)`](./src/guards/isNan.ts)** - Is x NaN?\n- **[`isNegative(x)`](./src/guards/isNegative.ts)** - Is x negative?\n- **[`isNull(x)`](./src/guards/isNull.ts)** - Is x null?\n- **[`isNumber(x)`](./src/guards/isNumber.ts)** - Is x a Number?\n- **[`isObject(x)`](./src/guards/isObject.ts)** - Is x an Object?\n- **[`isOdd(x)`](./src/guards/isOdd.ts)** - Is x odd?\n- **[`isPositive(x)`](./src/guards/isPositive.ts)** - Is x positive?\n- **[`isSet(x)`](./src/guards/isSet.ts)** - Is x an Set?\n- **[`isString(x)`](./src/guards/isString.ts)** - Is x a String?\n- **[`isSymbol(x)`](./src/guards/isSymbol.ts)** - Is x a Symbol?\n- **[`isUndefined(x)`](./src/guards/isUndefined.ts)** - Is x Undefined?\n- **[`isWeakMap(x)`](./src/guards/isWeakMap.ts)** - Is x a Weak Map?\n- **[`isWeakSet(x)`](./src/guards/isWeakSet.ts)** - Is x a Weak Set?\n\n### Types\n\n#### JSON\n\n- **[`JsonValue`](./src/json/jsonValue.ts)** - A valid JSON value\n- **[`JsonPatch`](./src/json/jsonPatch.ts)** - A valid JSON patch operation\n\n## Releases\n\nFor a complete list of releases, please see the [changelog](./CHANGELOG.md).\n\n## Contributing\n\nPlease do contribute! See the [contributing document](./CONTRIBUTING.md) for how\nto contribute.\n\n## Authors and acknowledgment\n\nInspired by the [Types library](https://github.com/mike-north/types) made by\n[Mike North](https://github.com/mike-north) and the TypeScript courses he teaches.\n\n- **[@martendebruijn](https://github.com/martendebruijn)** - Owner\n\nFor a full list of contributors, please see the [contributors list](https://github.com/martendebruijn/types/graphs/contributors).\n\n## License\n\n[MIT](./LICENSE) license\n\nCopyright © 2023 [Marten de Bruijn](https://github.com/martendebruijn)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartendebruijn%2Ftypes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartendebruijn%2Ftypes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartendebruijn%2Ftypes/lists"}