{"id":16909341,"url":"https://github.com/drager/carrying","last_synced_at":"2026-04-10T23:35:37.694Z","repository":{"id":57194566,"uuid":"57434669","full_name":"drager/carrying","owner":"drager","description":"A functional JavaScript library that carries you towards happier and better code.","archived":false,"fork":false,"pushed_at":"2016-06-06T17:09:10.000Z","size":309,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-10T06:21:31.655Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://drager.github.io/carrying/","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/drager.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":"2016-04-30T09:01:01.000Z","updated_at":"2016-05-25T07:40:24.000Z","dependencies_parsed_at":"2022-09-16T01:35:18.096Z","dependency_job_id":null,"html_url":"https://github.com/drager/carrying","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/drager/carrying","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drager%2Fcarrying","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drager%2Fcarrying/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drager%2Fcarrying/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drager%2Fcarrying/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drager","download_url":"https://codeload.github.com/drager/carrying/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drager%2Fcarrying/sbom","scorecard":{"id":354923,"data":{"date":"2025-08-11","repo":{"name":"github.com/drager/carrying","commit":"eb76466efe405b6e374e085bd6fdcf2553f39e09"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.4,"checks":[{"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":"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/30 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":"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":"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":"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: npmCommand not pinned by hash: tools/travis.sh:6","Info:   0 out of   1 npmCommand dependencies pinned"],"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":"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":"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-18T09:17:49.625Z","repository_id":57194566,"created_at":"2025-08-18T09:17:49.625Z","updated_at":"2025-08-18T09:17:49.625Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273574143,"owners_count":25129882,"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-09-04T02:00:08.968Z","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":[],"created_at":"2024-10-13T18:55:24.854Z","updated_at":"2026-04-10T23:35:32.643Z","avatar_url":"https://github.com/drager.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Carrying\n[![Build Status](https://travis-ci.org/drager/carrying.svg?branch=master)](https://travis-ci.org/drager/carrying)\n\nA functional JavaScript library that carries you towards happier and better code.\n\n## Why?\nBecause JavaScript (as is at the moment) lacks some great functions built into the language.\nA lot of other languages provides similar functions that this library provides.\nMainly functional languages, which this library has taken it's inspiration from. So this is simply a\nfunctional JavaScript library which provides some useful functions that JavaScript currently lacks.\n\n## Installation\n```\nnpm install --save carrying\n```\n\n## Usage\nJust import the functions you want to use:\n\n```js\nimport {concat, intersperse, uncons, range, transpose} from 'carrying'\n\nuncons(range(1, 11)) // =\u003e [[1], [2, 3, 4, 5, 6, 7, 8, 9, 10]]\nuncons([1, 2, 3]) //=\u003e [[1], [2, 3]]\nuncons([]) //=\u003e undefined\n\nuncons('abc') //=\u003e [['a'], ['b', 'c']]\nuncons('ze') // =\u003e [['z'], ['e']]\nuncons('q') // =\u003e ['q']\nuncons('') //=\u003e undefined\n\nrange(1, 3) // =\u003e [1, 2]\nrange(5, 11) // =\u003e [5, 6, 7, 8, 9, 10]\n\nrange(10, 9) // =\u003e []\nrange(2, 2) // =\u003e []\n\nrange(1, 10, 2) // =\u003e [1, 3, 5, 7, 9]\n\ntranspose([[1, 2, 3], [4, 5, 6]]) // =\u003e [[1, 4], [2, 5], [3, 6]]\ntranspose([[10, 11], [20], [], [30, 31, 32]]) // =\u003e [[10, 20, 30], [11, 31], [32]]\n\nconcat(intersperse(' ', ['intersperse', 'is', 'a', 'fun', 'function', '!'])) // =\u003e 'intersperse is a fun function !'\n```\n\nAny carrying module can be imported individually if you prefer that:\n```js\nimport {takeWhile} from 'carrying/lib/takeWhile'\n\ntakeWhile(a =\u003e a \u003c 3, [1, 2, 3, 4, 1, 2, 3, 4]) // =\u003e [1, 2]\n```\n\n## Documentation\nDocumentation is available online at: http://drager.github.io/carrying/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrager%2Fcarrying","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrager%2Fcarrying","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrager%2Fcarrying/lists"}