{"id":20109862,"url":"https://github.com/hyper63/free","last_synced_at":"2025-03-02T18:24:55.579Z","repository":{"id":110718914,"uuid":"330297425","full_name":"hyper63/free","owner":"hyper63","description":null,"archived":false,"fork":false,"pushed_at":"2021-01-20T00:47:45.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-13T05:41:40.708Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hyper63.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-01-17T02:14:43.000Z","updated_at":"2021-01-20T00:47:47.000Z","dependencies_parsed_at":"2023-05-03T03:15:49.514Z","dependency_job_id":null,"html_url":"https://github.com/hyper63/free","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyper63%2Ffree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyper63%2Ffree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyper63%2Ffree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyper63%2Ffree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyper63","download_url":"https://codeload.github.com/hyper63/free/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241550091,"owners_count":19980648,"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-11-13T18:09:41.104Z","updated_at":"2025-03-02T18:24:55.570Z","avatar_url":"https://github.com/hyper63.png","language":"JavaScript","readme":"\u003ch1 align=\"center\"\u003efree\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  Free is a functional type designed to wrap other types and enable interfaces to plugin or apply interpreters to a functional\n  application pipeline. This enables the adapter pattern for functional applications where the side effects can be injected into\n  the program flow using `foldMap`.\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/hyper63/free/tags/\"\u003e\u003cimg src=\"https://img.shields.io/github/tag/hyper63/free\" alt=\"Current Version\" /\u003e\u003c/a\u003e\n  \u003cimg src=\"https://github.com/hyper63/free/workflows/.github/workflows/deno.yml/badge.svg\" /\u003e\n  \n  \u003c/p\u003e\n\n---\n\n## Table of Contents\n\n- [Getting Started](#getting-started)\n- [Installation](#installation)\n- [Features](#features)\n- [Methods](#methods)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Getting Started\n\n```js\nimport { Task } from 'https://x.nest.land/task@1.0.0/mod.js'\nimport { liftF } from 'https://x.nest.land/free@1.0.3/mod.js'\n\nliftF(Task.of(() =\u003e Promise.resolve(':tada:')))\n.fold(\n  e =\u003e assertEquals(true, false),\n  task =\u003e task.fork(\n    e =\u003e assertEquals(true, false),\n    r =\u003e assertEquals(r, ':tada:')\n  )\n)\n```\n\n## Installation\n\nThis is a Deno module available to import from \nhttps://nest.land/package/free \n\ndeps.js\n\n```\nexport { liftF } from 'https://x.nest.land/free@1.0.3/mod.js'\n```\n\n## Features\n\n* liftF \n\n## Methods\n\n* fold - folds over value and returns value to first and second function handlers\n* foldMap - maps over values with and interpreter function then folds them into a single type\n\n## Contributing\n\nPull Requests are welcome\n\n## License\n\nMIT\n\n## Acknowledgements\n\nThe core code for this library was initiated from code shared by Brian Lonsdorf in a course from frontend masters. If you want to learn more about functional programming in javascript check it out: https://frontendmasters.com/courses/hardcore-js-v2/\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyper63%2Ffree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyper63%2Ffree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyper63%2Ffree/lists"}