{"id":40376076,"url":"https://github.com/roobie/mori-ext","last_synced_at":"2026-01-20T11:35:27.603Z","repository":{"id":34133969,"uuid":"37966928","full_name":"roobie/mori-ext","owner":"roobie","description":"Function bind syntax wrappers for mori","archived":false,"fork":false,"pushed_at":"2016-07-12T17:46:38.000Z","size":31,"stargazers_count":16,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T11:24:31.791Z","etag":null,"topics":["functional-programming","immutable","wrapper"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/roobie.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}},"created_at":"2015-06-24T06:34:17.000Z","updated_at":"2022-05-31T22:51:17.000Z","dependencies_parsed_at":"2022-08-17T23:10:24.847Z","dependency_job_id":null,"html_url":"https://github.com/roobie/mori-ext","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/roobie/mori-ext","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roobie%2Fmori-ext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roobie%2Fmori-ext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roobie%2Fmori-ext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roobie%2Fmori-ext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roobie","download_url":"https://codeload.github.com/roobie/mori-ext/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roobie%2Fmori-ext/sbom","scorecard":{"id":784468,"data":{"date":"2025-08-11","repo":{"name":"github.com/roobie/mori-ext","commit":"be19813e5bf6b4f915bfea1a707ff8a925773fa3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/28 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":"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":"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":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"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":"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":"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-23T05:43:11.585Z","repository_id":34133969,"created_at":"2025-08-23T05:43:11.585Z","updated_at":"2025-08-23T05:43:11.585Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28602502,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T10:46:13.255Z","status":"ssl_error","status_checked_at":"2026-01-20T10:42:51.865Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-programming","immutable","wrapper"],"created_at":"2026-01-20T11:35:27.537Z","updated_at":"2026-01-20T11:35:27.595Z","avatar_url":"https://github.com/roobie.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mori-ext\n[Function bind syntax](https://github.com/zenparsing/es-function-bind) wrappers for [mori](http://swannodette.github.io/mori)\n\n### immutable data structures + LINQ in javascript\n\n```\n\\__   __ \\_______ \\______   \\___         \\_______ \\__  \\__ \\_______\n|  |_|  ||       ||    _ |  |   |        |       ||  |_|  ||       |\n|       ||   _   ||   | ||  |   |  ____  |    ___||       ||_     _|\n|       ||  | |  ||   |_||_ |   | |____| |   |___ |       |  |   |  \n|       ||  |_|  ||    __  ||   |        |    ___| |     |   |   |  \n| ||_|| ||       ||   |  | ||   |        |   |___ |   _   |  |   |  \n|_|   |_||_______||___|  |_||___|        |_______||__| |__|  |___|  \n```\nthanks http://patorjk.com/software/taag\n\n\n#### Quick example\n```javascript\nimport { vector } from 'mori';\nimport { assoc, equals } from 'mori-ext';\n\nconst v1 = vector('foo', 'bar', 'baz');\nconst v2 = v1::assoc(1, 'quux');\nconst v3 = vector('foo', 'quux', 'baz');\nv2::equals(v3); // =\u003e true\n```\n\n## How?\nUsing [babeljs](https://babeljs.io/) everyone can use this syntax.\n\n[Look at an example using gulp](https://github.com/roobie/mori-ext/blob/master/gulpfile.js#L28-L32)\n\nAlso, copy the [`.babelrc`](https://github.com/roobie/mori-ext/blob/master/.babelrc) file, in order to enable the required language features in `babeljs`.\n\nThis effort is inspired by [trine](https://github.com/jussi-kalliokoski/trine)\n\n## Installation\n\n`npm install --save mori-ext`\n\nsee https://www.npmjs.com/package/mori-ext\n\n#### runtime dependencies\nmori,\nbabel-runtime,\n\n## Usage\n\n[Review the spec](https://github.com/roobie/mori-ext/blob/master/spec/basic.js) (covers the majority of the API)\n\n# API\n`mori-ext`'s  API is mostly based on collections being the first argument to `mori` functions, i.e.\n\n```javascript\nimport mori from 'mori';\nimport { equals, isList } from 'mori-ext';\n\nconst coll = mori.vector(1, 2, 3);\n\nmori.isList(coll);\n// is equivalent to\ncoll::isList();\n\n// and\n\nmori.equals(coll1, coll2);\n// is equivalent to\ncoll1::equals(coll2);\n```\n\nHowever, not all functions operate on a single collection, or even, on collections at all, so some consideration has been taken into account, e.g.\n\n```javascript\nimport { list, vector, seq } from 'mori';\nimport { mapcat, cons } from 'mori-ext';\n// mapcat\n((x, y) =\u003e list(x, x + y))\n  ::mapcat(seq('abc'), seq('123'));\n// =\u003e ('a' 'a1' 'b' 'b2' 'c' 'c3')\n\n// cons (converts collection into seq)\n1::cons(vector(2, 3))\n// =\u003e (1 2 3)\n```\n\n## Exported values\nFundamentals\n\n    equals\n    hash\n\nType Predicates\n\n    isList\n    isSeq\n    isVector\n    isMap\n    isSet\n    isCollection\n    isSequential\n    isAssociative\n    isCounted\n    isIndexed\n    isReduceable\n    isSeqable\n    isReversible\n\nCollections\n\n    list\n    vector\n    hashMap\n    set\n    sortedSet\n    range\n    queue\n\nCollection Operations\n\n    conj\n    into\n    assoc\n    dissoc\n    distinct\n    empty\n    get\n    getIn\n    hasKey\n    find\n    nth\n    last\n    assocIn\n    updateIn\n    count\n    isEmpty\n    peek\n    pop\n    zipmap\n    reverse\n\nVector Operations\n\n    subvec\n\nHash Map Operations\n\n    keys\n    vals\n    merge\n\nSet Operations\n\n    disj\n    union\n    intersection\n    difference\n    isSubset\n    isSuperset\n\nSequences\n\n    first\n    rest\n    seq\n    cons\n    concat\n    flatten\n    intoArray\n    each\n    map\n    mapcat\n    filter\n    remove\n    reduce\n    reduceKV\n    take\n    takeWhile\n    drop\n    dropWhile\n    some\n    every\n    sort\n    sortBy\n    interpose\n    interleave\n    iterate\n    repeat\n    repeatedly\n    partition\n    partitionBy\n    groupBy\n\nHelpers\n\n    primSeq\n    identity\n    constantly\n    inc\n    dec\n    sum\n    isEven\n    isOdd\n    comp\n    juxt\n    knit\n    pipeline\n    partial\n    curry\n    fnil\n    toClj\n    toJs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froobie%2Fmori-ext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froobie%2Fmori-ext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froobie%2Fmori-ext/lists"}