{"id":23752755,"url":"https://github.com/ziv/swiss-knife","last_synced_at":"2026-05-05T21:31:04.264Z","repository":{"id":36983768,"uuid":"364499958","full_name":"ziv/swiss-knife","owner":"ziv","description":"My utilities collection","archived":false,"fork":false,"pushed_at":"2023-01-16T02:32:11.000Z","size":1906,"stargazers_count":2,"open_issues_count":13,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T11:08:58.661Z","etag":null,"topics":["async","fp","functional-programming","https","json","nodejs","process","reflect","streams","strings","time","typescript","utilities"],"latest_commit_sha":null,"homepage":"","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/ziv.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}},"created_at":"2021-05-05T07:49:40.000Z","updated_at":"2023-03-07T12:53:12.000Z","dependencies_parsed_at":"2023-01-17T11:15:45.070Z","dependency_job_id":null,"html_url":"https://github.com/ziv/swiss-knife","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/ziv/swiss-knife","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziv%2Fswiss-knife","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziv%2Fswiss-knife/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziv%2Fswiss-knife/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziv%2Fswiss-knife/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ziv","download_url":"https://codeload.github.com/ziv/swiss-knife/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziv%2Fswiss-knife/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32669302,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["async","fp","functional-programming","https","json","nodejs","process","reflect","streams","strings","time","typescript","utilities"],"created_at":"2024-12-31T17:55:34.653Z","updated_at":"2026-05-05T21:31:04.246Z","avatar_url":"https://github.com/ziv.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# swiss-knife\n\n[![CI](https://github.com/ziv/swiss-knife/actions/workflows/main.yml/badge.svg)](https://github.com/ziv/swiss-knife/actions/workflows/main.yml)\n[![CodeQL](https://github.com/ziv/swiss-knife/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/ziv/swiss-knife/actions/workflows/codeql-analysis.yml)\n[![codecov](https://codecov.io/gh/ziv/swiss-knife/branch/main/graph/badge.svg?token=R4CB8YJ18S)](https://codecov.io/gh/ziv/swiss-knife)\n\n## Some unrelated words\n\nMy utilities collection.\n\nIn many cases I found myself writing the same utility functions over and over again in many projects I'm working on.\nThis repo is a place I'm collecting those tiny functions. \n\nEnjoy using them :)\n\n\u003e  :exclamation: While all functions tested and works - part of them simplified for demonstration and not production ready. Use with caution.\n\n\n```shell\nnpm i @xpr/swiss-knife\n```\n\n## Some more words for tech-ies\n* async\n  * [defer](src/async/defer.md)\n  * [sleep](src/async/sleep.md)\n* fp\n  * [compose](src/fp/compose.md)\n  * [curry](src/fp/curry.md)\n  * [pipe](src/fp/pipe.md)\n* http\n  * [https](src/http/https.md)\n* json\n  * [parse](src/json/parse.md)\n* process\n  * [error-handler](src/process/error-handler.md)\n  * [signal-handler](src/process/signal-handler.md)\n* reflect\n  * [to-plain](src/reflect/to-plain.md)\n* streams\n  * [from-string](src/streams/from-string.md)\n  * [to-promise](src/streams/from-string.md)\n* strings\n  * [trim-start](src/strings/trim-start.ts)\n  * [trim-end](src/strings/trim-end.ts)\n* time\n  * [now](src/time/now.md)\n  * [timer](src/time/timer.md)\n* types\n  * [functions](src/types/functions.ts)\n  * [json](src/types/json.ts)\n\n---\n\n![logo](assets/knife-thumb.png)\n\n---\n\n![xpr-swiss-knife](https://badgen.net/github/license/ziv/swiss-knife)\n![Open Source Love](https://badges.frapsoft.com/os/v2/open-source.svg)\n![@xpr](https://badgen.net/badge/powered%20by/@xpr/pink)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziv%2Fswiss-knife","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fziv%2Fswiss-knife","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziv%2Fswiss-knife/lists"}