{"id":17402847,"url":"https://github.com/thlorenz/chunk-rate-readable","last_synced_at":"2025-10-08T14:36:29.749Z","repository":{"id":10885791,"uuid":"13176046","full_name":"thlorenz/chunk-rate-readable","owner":"thlorenz","description":"Measures the rate at which a given stream emits data chunks and streams the result.","archived":false,"fork":false,"pushed_at":"2013-09-28T17:31:39.000Z","size":248,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-17T17:50:51.217Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"edx/edx-platform","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thlorenz.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":"2013-09-28T15:57:42.000Z","updated_at":"2016-10-20T10:45:06.000Z","dependencies_parsed_at":"2022-08-29T19:30:44.470Z","dependency_job_id":null,"html_url":"https://github.com/thlorenz/chunk-rate-readable","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/thlorenz/chunk-rate-readable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thlorenz%2Fchunk-rate-readable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thlorenz%2Fchunk-rate-readable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thlorenz%2Fchunk-rate-readable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thlorenz%2Fchunk-rate-readable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thlorenz","download_url":"https://codeload.github.com/thlorenz/chunk-rate-readable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thlorenz%2Fchunk-rate-readable/sbom","scorecard":{"id":881815,"data":{"date":"2025-08-11","repo":{"name":"github.com/thlorenz/chunk-rate-readable","commit":"0e067edd73718bb980c96373c9193bca8d9b833a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"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":"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":"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/14 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":"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":"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: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":"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":"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"}}]},"last_synced_at":"2025-08-24T08:30:39.875Z","repository_id":10885791,"created_at":"2025-08-24T08:30:39.875Z","updated_at":"2025-08-24T08:30:39.875Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278959363,"owners_count":26075854,"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-08T02:00:06.501Z","response_time":56,"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-16T18:30:33.364Z","updated_at":"2025-10-08T14:36:29.702Z","avatar_url":"https://github.com/thlorenz.png","language":"JavaScript","readme":"# chunk-rate-readable [![build status](https://secure.travis-ci.org/thlorenz/chunk-rate-readable.png)](http://travis-ci.org/thlorenz/chunk-rate-readable)\n\n[![testling badge](https://ci.testling.com/thlorenz/chunks-over-time-writable.png)](https://ci.testling.com/thlorenz/chunks-over-time-writable)\n\nMeasures the rate at which a given stream emits data chunks and streams the result.\n\n```js\nvar chunkRate = require('chunk-rate-readable')\n  , numbers = require('../test/fixtures/number-readable');\n\nvar numbersStream = numbers({ to: 20, throttle: 200 })\n\nvar last = 0;\nchunkRate(numbersStream, { objectMode: true, interval: 500 })\n  .on('data',  function (rate) {\n    var indicator = rate === last \n      ? '='\n      : rate \u003e last ? '▲' : '▼';\n    console.log(' %s  %d/500ms', indicator, rate);\n    last = rate;\n  });\n```\n\n![example output](https://github.com/thlorenz/chunk-rate-readable/raw/master/assets/chunk-rate-demo.gif)\n\n## Installation\n\n    npm install chunk-rate-readable\n\n## API\n\n###*function ChunkRateReadable (stream[, opts])*\n\nCreates a readable stream that will emit how many chunks the given stream emitted during the given interval.\n\n@name ChunkRateReadable\n@function\n**params:**\n\n- stream *ReadableStream* whose chunk rate is measured\n- opts *Object* with the following properties:\n  - objectMode {Boolean} if true rate is emitted as actual numbers, otherwise as buffers\n  - interval {Number} at which to measure the rate (default: rate/500ms)\n\n**returns:**\n\n*ReadableStream* that will emit updates about the chunk rate of the given stream.\n\n###*chunkRateReadable.endSoon*\n\nCall this in case you want to tell the rate stream to end.\nUseful for testing and/or when you want to end your debugging session and allow the program to exit.\n\n## Similar Modules\n\n- [speed-meter](https://github.com/CrowdProcess/speed-meter) measures the number of emitted bytes (vs. number of chunks) over a given time period\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthlorenz%2Fchunk-rate-readable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthlorenz%2Fchunk-rate-readable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthlorenz%2Fchunk-rate-readable/lists"}