{"id":23508689,"url":"https://github.com/jdolle/unfun-ts","last_synced_at":"2026-02-04T10:50:19.357Z","repository":{"id":37956786,"uuid":"240677486","full_name":"jdolle/unfun-ts","owner":"jdolle","description":"Practical helpers to unfunctionalize fp-ts types","archived":false,"fork":false,"pushed_at":"2024-12-11T17:07:32.000Z","size":377,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T11:12:40.909Z","etag":null,"topics":["fp-ts","functional-programming","typescript"],"latest_commit_sha":null,"homepage":"https://jdolle.github.io/unfun-ts/","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/jdolle.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}},"created_at":"2020-02-15T09:31:14.000Z","updated_at":"2023-01-18T19:36:03.000Z","dependencies_parsed_at":"2023-02-03T18:02:03.167Z","dependency_job_id":null,"html_url":"https://github.com/jdolle/unfun-ts","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdolle%2Funfun-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdolle%2Funfun-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdolle%2Funfun-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdolle%2Funfun-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdolle","download_url":"https://codeload.github.com/jdolle/unfun-ts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249266646,"owners_count":21240792,"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":["fp-ts","functional-programming","typescript"],"created_at":"2024-12-25T11:31:12.892Z","updated_at":"2026-02-04T10:50:14.337Z","avatar_url":"https://github.com/jdolle.png","language":"TypeScript","readme":"# unfun-ts\n[![Maintainability](https://api.codeclimate.com/v1/badges/8f9c1a0cb3f5c1857bd1/maintainability)](https://codeclimate.com/github/jdolle/unfun-ts/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/8f9c1a0cb3f5c1857bd1/test_coverage)](https://codeclimate.com/github/jdolle/unfun-ts/test_coverage) [![CircleCI](https://circleci.com/gh/jdolle/unfun-ts.svg?style=shield\u0026circle-token=8a84ce64e98e1931fcfaea27b0ad3ba13f147c92)](https://circleci.com/gh/jdolle/unfun-ts)\n\nPractical helpers to unfunctionalize fp-ts types\n\n## Description\nFunctional programming is powerful, but not always the most practical. This package encourages using functional programming in Typescript using [`fp-ts`](https://github.com/gcanti/fp-ts) by providing a very practical way to interact with the broader, imperative codebase.\n\n## Install\n`unfun-ts` is a utility library for `fp-ts`. Therefore `fp-ts` is a peer dependency of `unfun-ts`.\n\n```\nyarn add unfun-ts\nyarn add fp-ts@^2.0.0\n```\n\n## Usage\n\n```ts\nimport * as UE from \"unfun-ts/lib/Either\";\nimport * as E from \"fp-ts/lib/Either\";\nimport { pipe } from \"fp-ts/lib/pipeable\";\n\n// const nullyValue: undefined | number;\ntry {\n  const value = pipe(\n    nullyValue,\n    E.fromNullable(\"nully\"),\n    UE.getOrThrow(),\n  );\n} catch (bad) {\n  console.error(`The value was ${bad}`);\n}\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdolle%2Funfun-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdolle%2Funfun-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdolle%2Funfun-ts/lists"}