{"id":31914836,"url":"https://github.com/meinstein/func-fns","last_synced_at":"2025-10-13T19:42:08.942Z","repository":{"id":57242878,"uuid":"388581129","full_name":"meinstein/func-fns","owner":"meinstein","description":"Functional utils for your functional needs.","archived":false,"fork":false,"pushed_at":"2021-08-09T21:03:04.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T06:37:43.206Z","etag":null,"topics":["functional-js","typescript","utils"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/meinstein.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}},"created_at":"2021-07-22T19:53:56.000Z","updated_at":"2021-08-09T21:04:27.000Z","dependencies_parsed_at":"2022-09-15T01:33:47.818Z","dependency_job_id":null,"html_url":"https://github.com/meinstein/func-fns","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/meinstein/func-fns","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meinstein%2Ffunc-fns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meinstein%2Ffunc-fns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meinstein%2Ffunc-fns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meinstein%2Ffunc-fns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meinstein","download_url":"https://codeload.github.com/meinstein/func-fns/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meinstein%2Ffunc-fns/sbom","scorecard":{"id":635521,"data":{"date":"2025-08-11","repo":{"name":"github.com/meinstein/func-fns","commit":"c2d10e193a28eec8731913a20410395b6f05157a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/22 approved changesets -- score normalized to 0","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":"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":"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":"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":"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":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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"}}]},"last_synced_at":"2025-08-21T09:03:38.518Z","repository_id":57242878,"created_at":"2025-08-21T09:03:38.518Z","updated_at":"2025-08-21T09:03:38.518Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016929,"owners_count":26085889,"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-10-13T02:00:06.723Z","response_time":61,"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":["functional-js","typescript","utils"],"created_at":"2025-10-13T19:42:04.883Z","updated_at":"2025-10-13T19:42:08.937Z","avatar_url":"https://github.com/meinstein.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⚠️ DEPRECATED - USE [FLATMAP-FNS](https://github.com/meinstein/flatmap-fns) INSTEAD ⚠️\n\n# func-fns\n\nFunctional utils for your functional needs.\n\n```bash\nnpm i func-fns\n```\n\n## **filter fns**\n\n### _keep_\n\n```js\nimport keep from 'func-fns/filter/keep'\n\nconst res = ['foo', 'bar', 'baz'].filter(keep(1))\nconsole.log(res) // ['bar']\n```\n\n### _remove_\n\n```js\nimport remove from 'func-fns/filter/remove'\n\nconst res = ['foo', 'bar', 'baz'].filter(remove(1))\nconsole.log(res) // ['foo', 'baz']\n```\n\n### _uniq_\n\n```js\nimport uniq from 'func-fns/filter/uniq'\n\nconst res = ['foo', 'foo', 'bar', 1, 1].filter(uniq())\nconsole.log(res) // ['foo', 'bar', 1]\n```\n\n## **flatMap fns**\n\n### _insert_\n\n```js\nimport insert from 'func-fns/flatMap/insert'\n\nconst res = ['foo', 'bar', 'baz'].flatMap(insert('foo', 1))\nconsole.log(res) // ['foo', 'foo', 'bar', 'baz']\n```\n\n### _truthy_\n\n```js\nimport truthy from 'func-fns/flatMap/truthy'\n\nconst res = ['foo', undefined, 'baz', null].flatMap(truthy())\nconsole.log(res) // ['foo', 'baz']\n```\n\n## **map fns**\n\n### _length_\n\n```js\nimport length from 'func-fns/map/length'\n\nconst res = ['foo', ['bar', 'baz']].map(length())\nconsole.log(res) // [3, 2]\n```\n\n### _replace_\n\n```js\nimport replace from 'func-fns/map/replace'\n\nconst res = ['foo', 'bar', 'baz'].map(replace(1, 'foo'))\nconsole.log(res) // ['foo', 'foo', 'baz']\n```\n\n### _transpose_\n\n```js\nimport transpose from 'func-fns/map/transpose'\n\nconst res = ['foo', 'bar', 'baz'].map(transpose(1, 2))\nconsole.log(res) // ['foo', 'baz', 'bar']\n```\n\n### _key_\n\n```js\nimport key from 'func-fns/map/key'\n\nconst res = [{ id: 'foo' }, { id: 'bar' }].map(key('id'))\nconsole.log(res) // ['foo', 'bar']\n```\n\n## **reduce fns**\n\n### _shuffle_\n\n```js\nimport shuffle from 'func-fns/reduce/shuffle'\n\nconst res = [1, 2, 3, 4, 5].reduce(...shuffle())\nconsole.log(res) // will be shuffled, eg, [5, 2, 1, 4, 3]\n```\n\n### _sum_\n\n```js\nimport sum from 'func-fns/reduce/sum'\n\nconst res = [1, 2, 3].reduce(sum())\nconsole.log(res) // 6\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeinstein%2Ffunc-fns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeinstein%2Ffunc-fns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeinstein%2Ffunc-fns/lists"}