{"id":22657310,"url":"https://github.com/anonymousrecords/type-safe-array","last_synced_at":"2025-03-29T08:13:57.191Z","repository":{"id":253062197,"uuid":"842340802","full_name":"anonymousRecords/type-safe-array","owner":"anonymousRecords","description":"TypeSafeArray is a type-safe utility library for array manipulation in TypeScript.","archived":false,"fork":false,"pushed_at":"2024-08-21T09:11:29.000Z","size":7420,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T03:42:05.480Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://type-safe-array-docs.vercel.app","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/anonymousRecords.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2024-08-14T06:41:56.000Z","updated_at":"2024-08-21T09:14:20.000Z","dependencies_parsed_at":"2024-08-20T10:35:30.837Z","dependency_job_id":"419000cd-4450-496e-8e2b-b2cee9bd3e3a","html_url":"https://github.com/anonymousRecords/type-safe-array","commit_stats":null,"previous_names":["anonymousrecords/type-safe-array"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anonymousRecords%2Ftype-safe-array","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anonymousRecords%2Ftype-safe-array/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anonymousRecords%2Ftype-safe-array/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anonymousRecords%2Ftype-safe-array/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anonymousRecords","download_url":"https://codeload.github.com/anonymousRecords/type-safe-array/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246156416,"owners_count":20732397,"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":[],"created_at":"2024-12-09T10:25:41.949Z","updated_at":"2025-03-29T08:13:57.169Z","avatar_url":"https://github.com/anonymousRecords.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TypeSafeArray\n\nTypeSafeArray is a type-safe utility library for array manipulation in TypeScript.\n\n## Features\n\n- Full type safety\n- Support for readonly arrays\n- API similar to standard Array methods\n\n## Installation\n\n```bash\nnpm install @chapdo/type-safe-array\n```\n\nor\n\n```bash\nyarn add @chapdo/type-safe-array\n```\n\n## Usage\n\n```typescript\nimport { TypeSafeArray } from 'type-safe-array';\n\nconst numbers = [1, 2, 3, 4, 5] as const;\n\n// map example\nconst doubled = TypeSafeArray.map(numbers, (x) =\u003e x * 2);\nconsole.log(doubled); // [2, 4, 6, 8, 10]\n\n// filter example\nconst evenNumbers = TypeSafeArray.filter(numbers, (x) =\u003e x % 2 === 0);\nconsole.log(evenNumbers); // [2, 4]\n\n// reduce example\nconst sum = TypeSafeArray.reduce(numbers, (acc, curr) =\u003e acc + curr, 0);\nconsole.log(sum); // 15\n```\n\n## Official Documentation\n\nDetailed API documentation can be found [here](https://type-safe-array-docs.vercel.app/).\n\n## License\n\nThis project is under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanonymousrecords%2Ftype-safe-array","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanonymousrecords%2Ftype-safe-array","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanonymousrecords%2Ftype-safe-array/lists"}