{"id":19451563,"url":"https://github.com/pxyup/rxjs-min-max","last_synced_at":"2026-05-16T01:34:48.830Z","repository":{"id":78602363,"uuid":"150913661","full_name":"PxyUp/rxjs-min-max","owner":"PxyUp","description":" RxJs Operators for emits minimum/maximum value on each iteration.","archived":false,"fork":false,"pushed_at":"2018-09-30T11:34:41.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-22T13:57:46.563Z","etag":null,"topics":["angular","observable","rxjs"],"latest_commit_sha":null,"homepage":"https://github.com/ReactiveX/rxjs/pull/4208#issuecomment-425711532","language":"TypeScript","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/PxyUp.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":"2018-09-30T00:22:50.000Z","updated_at":"2018-09-30T12:31:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"89be7739-b3af-4872-834a-b161ef94c213","html_url":"https://github.com/PxyUp/rxjs-min-max","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/PxyUp/rxjs-min-max","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PxyUp%2Frxjs-min-max","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PxyUp%2Frxjs-min-max/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PxyUp%2Frxjs-min-max/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PxyUp%2Frxjs-min-max/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PxyUp","download_url":"https://codeload.github.com/PxyUp/rxjs-min-max/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PxyUp%2Frxjs-min-max/sbom","scorecard":{"id":115177,"data":{"date":"2025-08-11","repo":{"name":"github.com/PxyUp/rxjs-min-max","commit":"8c6cd1941565c34cbe4014e112528f65882c5acd"},"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":"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":"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":"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":"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":0,"reason":"Found 0/21 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":"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":"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:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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-16T01:01:25.074Z","repository_id":78602363,"created_at":"2025-08-16T01:01:25.074Z","updated_at":"2025-08-16T01:01:25.074Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271420131,"owners_count":24756490,"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-08-21T02:00:08.990Z","response_time":74,"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":["angular","observable","rxjs"],"created_at":"2024-11-10T16:42:15.417Z","updated_at":"2026-05-16T01:34:48.798Z","avatar_url":"https://github.com/PxyUp.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rxjs-min-max\n\nRxJs Operators for emits minimum/maximum value on each iteration.\n\n[![NPM](https://nodei.co/npm/rxjs-min-max.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/rxjs-min-max/)\n\n# Example\n\n  ```javascript\n    import { maxStream, minStream } from 'rxjs-min-max'\n\n    of(1, 1, 2, 2, 2, 0, 1, 2, 3, -1, 4).pipe(\n      maxStream(),\n    )\n    .subscribe(x =\u003e console.log(x)); // 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 4\n\n    of\u003cPerson\u003e(\n      { age: 4, name: 'Foo'},\n      { age: 7, name: 'Bar'},\n      { age: 3, name: 'Foo'},\n      { age: 6, name: 'Foo'},\n    ).pipe(\n      minStream((p: Person, q: Person) =\u003e p.age \u003e q.age),\n    )\n    .subscribe(x =\u003e console.log(x));\n \n    // displays:\n    // { age: 4, name: 'Foo' }\n    // { age: 4, name: 'Foo' }\n    // { age: 3, name: 'Foo'},\n    // { age: 3, name: 'Foo'},\n \n  ```\n\n# Performance\n\nYou can used this operators like min/max:\n  \n```javascript \n  .pipe(\n    minStream(), // maxStream\n    last()\n) // equal min() / max()\n```\n\nIf size of stream big(n \u003e 10000), minStream(maxStream) work faster than min(max):\n\n```javascript\nvar rxjsMinMax = require('./dist/index.js');\nvar rxjs = require('rxjs');\nvar last = require('rxjs/operators').last;\nvar min = require('rxjs/operators').min;\n\nconst n = 100000;\nconst array = Array.from({ length: n }, () =\u003e Math.floor(Math.random() * n));\n\nconsole.time('minStream');\nrxjs.from(array).pipe(rxjsMinMax.minStream(), last()).subscribe((x) =\u003e console.log(x));\nconsole.timeEnd('minStream');\n\nconsole.time('min');\nrxjs.from(array).pipe(min()).subscribe((x) =\u003e console.log(x));\nconsole.timeEnd('min');\n\n// count n = 100000\n// 0\n// minStream: 11.276ms\n// 0\n// min: 40.306ms\n\n// count n = 1000000\n// 0\n// minStream: 24.084ms\n// 0\n// min: 72.204ms\n\n// count n = 10000000\n// 1\n// minStream: 137.856ms\n// 1\n// min: 437.046ms\n\n// count n = 1000\n// 0\n// minStream: 5.738ms\n// 0\n// min: 1.779ms\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpxyup%2Frxjs-min-max","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpxyup%2Frxjs-min-max","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpxyup%2Frxjs-min-max/lists"}