{"id":29260086,"url":"https://github.com/eziomercer/type-enhancers","last_synced_at":"2025-07-04T07:07:41.129Z","repository":{"id":298588498,"uuid":"1000478824","full_name":"EzioMercer/type-enhancers","owner":"EzioMercer","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-29T11:40:28.000Z","size":79,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-29T11:52:27.360Z","etag":null,"topics":["enhancer","enhancers","library","package","type-enhancers","types","typescript","typescript-library"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/type-enhancers","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/EzioMercer.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":"2025-06-11T21:11:20.000Z","updated_at":"2025-06-29T11:40:26.000Z","dependencies_parsed_at":"2025-06-11T22:35:38.150Z","dependency_job_id":"f37ebb18-3a11-437c-91d4-368e4c30955a","html_url":"https://github.com/EzioMercer/type-enhancers","commit_stats":null,"previous_names":["eziomercer/type-enhancers"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/EzioMercer/type-enhancers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EzioMercer%2Ftype-enhancers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EzioMercer%2Ftype-enhancers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EzioMercer%2Ftype-enhancers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EzioMercer%2Ftype-enhancers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EzioMercer","download_url":"https://codeload.github.com/EzioMercer/type-enhancers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EzioMercer%2Ftype-enhancers/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263464231,"owners_count":23470476,"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":["enhancer","enhancers","library","package","type-enhancers","types","typescript","typescript-library"],"created_at":"2025-07-04T07:07:33.838Z","updated_at":"2025-07-04T07:07:41.120Z","avatar_url":"https://github.com/EzioMercer.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# type-enhancers\n\n# Installing\n\n```shell\nnpm i -d type-enhancers\n```\n\n# How to use\n\n## Utils\n\nTo use utils, you have to import them in every file with named import from `utils` folder:\n\n### Import from `utils` folder\n\n```typescript\nimport type { Nilable, Nullable } from \"type-enhancers/utils\";\n```\n\n### Import directly from `utils` files\n\n```typescript\nimport type { Nilable } from \"type-enhancers/utils/Nilable\";\nimport type { Nullable } from \"type-enhancers/utils/Nullable\";\n```\n\n## Overloads\n\nTo use overloads, you have to import them in one file from `overloads` folder.\nYou can control the scope of overloads just from your import:\n\n### Import all overloads:\n\n```typescript\nimport \"type-enhancers/overloads\";\n```\n\n### Import all overloads for String:\n\n```typescript\nimport \"type-enhancers/overloads/String\";\n```\n\n### Import all overloads for the String split method:\n\n```typescript\nimport \"type-enhancers/overloads/String/Split\";\n```\n\n## Available overloads\n\n+ Number\n    + Constructor\n        + [Number()](./overloads/Number/Constructor/Cast.d.ts)\n        + [new Number()](./overloads/Number/Constructor/Instance.d.ts)\n    + [toString](./overloads/Number/ToString.d.ts)\n\n+ String\n    + [split](./overloads/String/Split.d.ts) (Returns tuple instead of an array)\n    + [toLowerCase](./overloads/String/ToLowerCase.d.ts)\n    + [toUpperCase](./overloads/String/ToUpperCase.d.ts)\n    + [trim](./overloads/String/Trim.d.ts)\n    + [trimEnd](./overloads/String/TrimEnd.d.ts)\n    + [trimStart](./overloads/String/TrimStart.d.ts)\n\n## Available utils\n\n+ [BigIntToNumber](./utils/BigIntToNumber.d.ts)\n+ [If](utils/If.d.ts)\n+ [IfElse](utils/IfElse.d.ts)\n+ [IsStringLikeNumber](./utils/IsStringLikeNumber.d.ts)\n+ [Nilable](./utils/Nilable.d.ts)\n+ [Nullable](./utils/Nullable.d.ts)\n+ [SplitByString](./utils/SplitByString.d.ts)\n+ [StringToNumber](./utils/StringToNumber.d.ts)\n+ [Trim](./utils/Trim.d.ts)\n+ [TrimEnd](./utils/TrimEnd.d.ts)\n+ [TrimStart](./utils/TrimStart.d.ts)\n+ [Undefinable](./utils/Undefinable.d.ts)\n+ [WhiteSpace](./utils/WhiteSpace.d.ts)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feziomercer%2Ftype-enhancers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feziomercer%2Ftype-enhancers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feziomercer%2Ftype-enhancers/lists"}