{"id":18696493,"url":"https://github.com/hermanya/partial-application-with-named-parameters","last_synced_at":"2025-11-08T15:30:31.024Z","repository":{"id":76897285,"uuid":"57094251","full_name":"Hermanya/partial-application-with-named-parameters","owner":"Hermanya","description":"🍛 Bind (curry) with options object","archived":false,"fork":false,"pushed_at":"2018-02-02T16:57:14.000Z","size":42,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-28T03:42:13.386Z","etag":null,"topics":["bind","curry","javascript","named-parameters","parameters","partial-functions"],"latest_commit_sha":null,"homepage":"https://github.com/Hermanya/partial-application-with-named-parameters/blob/master/test.js","language":"JavaScript","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/Hermanya.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-26T03:19:05.000Z","updated_at":"2018-02-02T16:54:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"ad6a4d42-69ab-4132-9663-ae54503044fe","html_url":"https://github.com/Hermanya/partial-application-with-named-parameters","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanya%2Fpartial-application-with-named-parameters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanya%2Fpartial-application-with-named-parameters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanya%2Fpartial-application-with-named-parameters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanya%2Fpartial-application-with-named-parameters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hermanya","download_url":"https://codeload.github.com/Hermanya/partial-application-with-named-parameters/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239558930,"owners_count":19658929,"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":["bind","curry","javascript","named-parameters","parameters","partial-functions"],"created_at":"2024-11-07T11:19:12.457Z","updated_at":"2025-11-08T15:30:30.954Z","avatar_url":"https://github.com/Hermanya.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Partial Application](https://github.com/MostlyAdequate/mostly-adequate-guide/blob/master/ch4.md) with Named Parameters [![Build Status](https://travis-ci.org/Hermanya/partial-application-with-named-parameters.svg?branch=master)](https://travis-ci.org/Hermanya/partial-application-with-named-parameters)\n\n![screenshot](screenshot.png)\n\n## Usage\n\nFirst have a function, that destructs its first and only parameter.\nThis module will make you able to partially apply named parameters for that function.\n[Take a look at tests](test.js) to for details.\n\n```js\nimport test from 'ava';\nimport bindable from './';\n\ntest('calculate sum', t =\u003e {\n\tconst reduce = bindable(function ({reducer, initialValue, array}) {\n\t\treturn array.reduce(reducer, initialValue);\n\t});\n\tconst reduceFromZero = reduce({initialValue: 0});\n\tconst array = [1, 2, 3];\n\n\tt.is(reduceFromZero({\n\t\treducer: (x, y) =\u003e x + y,\n\t\tarray\n\t}), 6);\n});\n```\n\n## License\n\nMIT © [Herman Starikov](http://hermanya.github.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhermanya%2Fpartial-application-with-named-parameters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhermanya%2Fpartial-application-with-named-parameters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhermanya%2Fpartial-application-with-named-parameters/lists"}