{"id":32956820,"url":"https://github.com/thisables/curry","last_synced_at":"2026-03-17T22:37:21.655Z","repository":{"id":25235990,"uuid":"28660565","full_name":"thisables/curry","owner":"thisables","description":":curry: Currying made simple.","archived":false,"fork":false,"pushed_at":"2019-11-07T17:23:59.000Z","size":112,"stargazers_count":86,"open_issues_count":4,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-10-24T19:55:44.821Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/thisables.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-31T08:14:47.000Z","updated_at":"2025-07-27T06:27:46.000Z","dependencies_parsed_at":"2022-08-23T22:00:41.584Z","dependency_job_id":null,"html_url":"https://github.com/thisables/curry","commit_stats":null,"previous_names":["stoeffel/chickencurry","stoeffel/curry-this"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/thisables/curry","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisables%2Fcurry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisables%2Fcurry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisables%2Fcurry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisables%2Fcurry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thisables","download_url":"https://codeload.github.com/thisables/curry/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisables%2Fcurry/sbom","scorecard":{"id":853717,"data":{"date":"2025-08-11","repo":{"name":"github.com/thisables/curry","commit":"e18d43e9e4fb31b36d7388edcee77460f34e598d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":1,"reason":"Found 3/27 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 9 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T23:14:56.906Z","repository_id":25235990,"created_at":"2025-08-23T23:14:56.906Z","updated_at":"2025-08-23T23:14:56.906Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284734138,"owners_count":27054622,"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","status":"online","status_checked_at":"2025-11-16T02:00:05.974Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-11-12T23:00:20.488Z","updated_at":"2025-11-16T16:02:14.002Z","avatar_url":"https://github.com/thisables.png","language":"JavaScript","readme":"\u003ch1 align=\"center\"\u003e\n\t\u003cimg\n\t\talt=\"curry\"\n\t\tsrc=\"./logo.png\"\n\t/\u003e\n\u003c/h1\u003e\n\n[![Build Status](https://travis-ci.org/thisables/curry.svg)](https://travis-ci.org/stoeffel/curry-this)\n[![Coverage Status](https://coveralls.io/repos/thisables/curry/badge.svg?branch=master)](https://coveralls.io/r/stoeffel/curry-this?branch=master)\n[![npm version](https://badge.fury.io/js/curry.svg)](http://badge.fury.io/js/curry-this)\n[![Dependency Status](https://david-dm.org/thisables/curry.svg)](https://david-dm.org/1-liners/1-liners)\n[![API-style](https://img.shields.io/badge/API--style-%3A%3A-blue.svg)](https://github.com/zenparsing/es-function-bind)\n\n\n**Currying made simple.**\n\n\n\n– and we really mean simple:\n\n```js\nimport {curry, _} from '@thisables/curry';\n\n\n// Got a simple function?\n\nconst plus = (\n\t(a, b, c) =\u003e a + b + c\n)::curry();\n\nplus(1, 2, 3);  //» 6\nplus(1)(2, 3);  //» 6\nplus(1, 2)(3);  //» 6\nplus(1)(2)(3);  //» 6\n\n\n// Got a monster function?\n\nconst {open} = require('fs');\nconst newScript = open::curry(_, 'w', 0755, _);\n\nnewScript('do-wonders.sh', (error, file) =\u003e {\n  // The `file` is ready.\n});\n```\n\n\n\nInstallation\n------------\n\n```sh\nnpm install @thisables/curry\n```\n\n\n\n\nUsage\n---\n\n### Basic usage\n\nThe function `curry` is invoked using the [function bind syntax](https://github.com/zenparsing/es-function-bind) and returns a curried function.\n\n```js\nconst add = (a, b) =\u003e a + b;\nconst curriedAdd = add::curry();\n\ncurriedAdd(1)(2); //» 3\n```\n\n\n### Placeholders\n\nA placeholder `_` is a special value, which you import from `'curry-this'`.\nPlaceholders are replaced from left to right, the next call after a placeholder is passed replaces the previous placeholders one by one.\n\n```js\nconst foo = (a, b, c, d) =\u003e [a, b, c, d];\n\nconst curriedFoo = foo::curry(_, _, _, 4);\n\ncurriedFoo(1)(2)(3); //» [1, 2, 3, 4]\n```\n\nIf you pass a placeholder to `curry` the length of the function is **ignored** instead the initial call of `curry` defines the length of the curried function.\n\n```js\nconst foo = (...values) =\u003e values;\n\nconst curriedFoo = foo::curry(_, _, _);\n\ncurriedFoo(1)(2)(3); //» [1, 2, 3]\n```\n\n### Arity\n\nThe curried function has a fixed arity. Additional arguments aren't passed.\n\n```js\nconst foo = (...values) =\u003e values;\n\nconst curriedFoo = foo::curry(_, _, _);\n\ncurriedFoo(1)(2)(3, 5, 6, 7); //» [1, 2, 3]\n```\n\n### Not experimental usage\n\nYou can still use `curry` without the experimental syntax\n\n```js\nconst add = (a, b) =\u003e a + b;\nconst curriedAdd = curry.call(add);\n\ncurriedAdd(1)(2); //» 3\n```\n\nOr with placeholders\n\n```js\nconst foo = (...values) =\u003e values;\n\nconst curriedFoo = curry.call(foo, _, _, _);\n\ncurriedFoo(1)(2)(3); //» [1, 2, 3]\n```\n\nAPI\n---\n\n### `fn::curry(...args)`\n\n**Parameters**\n\n**fn** | the function to curry\n-------|----------------------\n**args** | curried arguments or placeholders\n\n**Returns**\n\nA curried function.\n\n\n\n`::` huh?\n----\n\nIf you’re wondering what the `::` thing means, you’d better read this excellent [overview](https://github.com/jussi-kalliokoski/trine/blob/5b735cbfb6b28ae94bac0446d9ecd5ce51fb149b/README.md#why) by [@jussi-kalliokoski](https://github.com/jussi-kalliokoski) or have a look at the [function bind syntax proposal](https://github.com/zenparsing/es-function-bind).\n\n\nMaintainers\n-----------\n\n|  [![stoeffel](https://avatars.githubusercontent.com/u/1217681?v=3\u0026s=80)](https://github.com/stoeffel) | [![tomekwi](https://avatars.githubusercontent.com/u/4624660?v=3\u0026s=80)](https://github.com/tomekwi)  |\n| :--:|:--: |\n|  [stoeffel](https://github.com/stoeffel) | [tomekwi](https://github.com/tomekwi)  |\n\n\n\n\nLicense\n-------\n\n[MIT][] © [Christoph Hermann][]\n\n[MIT]: ./LICENSE.md\n[Christoph Hermann]: https://github.com/stoeffel\n","funding_links":[],"categories":["Libraries"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisables%2Fcurry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthisables%2Fcurry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisables%2Fcurry/lists"}