{"id":15476552,"url":"https://github.com/okmttdhr/fp-minimal","last_synced_at":"2025-04-22T14:21:55.465Z","repository":{"id":51984006,"uuid":"227077445","full_name":"okmttdhr/fp-minimal","owner":"okmttdhr","description":"Minimal typed functional programming in TypeScript","archived":false,"fork":false,"pushed_at":"2021-08-11T19:03:19.000Z","size":413,"stargazers_count":3,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T17:15:45.480Z","etag":null,"topics":["functional-programming","typescript"],"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/okmttdhr.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":"2019-12-10T09:24:25.000Z","updated_at":"2024-03-22T03:44:40.000Z","dependencies_parsed_at":"2022-09-08T00:40:42.930Z","dependency_job_id":null,"html_url":"https://github.com/okmttdhr/fp-minimal","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okmttdhr%2Ffp-minimal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okmttdhr%2Ffp-minimal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okmttdhr%2Ffp-minimal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okmttdhr%2Ffp-minimal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/okmttdhr","download_url":"https://codeload.github.com/okmttdhr/fp-minimal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250255777,"owners_count":21400411,"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":["functional-programming","typescript"],"created_at":"2024-10-02T03:40:22.979Z","updated_at":"2025-04-22T14:21:55.435Z","avatar_url":"https://github.com/okmttdhr.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# fp-minimal\n\nMinimal typed functional programming in TypeScript.\n\n- 1.6KB mini library\n- For people who don't want to install a lot of APIs just for function composition\n\n\n## Installation\n\n```sh\nyarn add fp-minimal\n```\n\n\n## API\n\n`fp-minimal` exposes only 2 functions.\n\n\n### pipe\n\n```ts\nimport { pipe } from 'fp-minimal';\n\nconst double = (x: number) =\u003e x * 2;\nconst addOne = (x: number) =\u003e x + 1;\nconst square = (x: number) =\u003e x * x;\n\npipe(double, addOne, square)(2) // 25\n```\n\n\n### curry\n\n```ts\nimport { curry } from 'fp-minimal';\n\nconst add = (x: number, y: number) =\u003e x + y;\nconst addOne = curry(add)(1);\n\naddOne(2); // 3\n[1, 2, 3].map(addOne); // [2, 3, 4]\n```\n\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokmttdhr%2Ffp-minimal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fokmttdhr%2Ffp-minimal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokmttdhr%2Ffp-minimal/lists"}