{"id":17256140,"url":"https://github.com/jalal246/textics-stream","last_synced_at":"2025-08-22T06:44:18.657Z","repository":{"id":55646888,"uuid":"101088436","full_name":"jalal246/textics-stream","owner":"jalal246","description":"Text Statistics For Node Streams","archived":false,"fork":false,"pushed_at":"2020-12-18T01:03:33.000Z","size":60,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-15T04:20:43.624Z","etag":null,"topics":["characters","count-data","count-lines","counter","get-info","linesearch","mytools","node","search-in-text","statistics","stream","string","string-calculator","string-manipulation","string-search","text","textics","textics-stream","transformer","wordsearch"],"latest_commit_sha":null,"homepage":"https://jalal246.github.io/textics-stream/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jalal246.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":"2017-08-22T17:16:13.000Z","updated_at":"2023-03-04T05:33:39.000Z","dependencies_parsed_at":"2022-08-15T05:30:42.265Z","dependency_job_id":null,"html_url":"https://github.com/jalal246/textics-stream","commit_stats":null,"previous_names":["jimmy02020/textics-stream"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jalal246/textics-stream","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jalal246%2Ftextics-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jalal246%2Ftextics-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jalal246%2Ftextics-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jalal246%2Ftextics-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jalal246","download_url":"https://codeload.github.com/jalal246/textics-stream/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jalal246%2Ftextics-stream/sbom","scorecard":{"id":113700,"data":{"date":"2025-08-11","repo":{"name":"github.com/jalal246/textics-stream","commit":"86a6364fdaaa06694e287b4e76381de2045f91a5"},"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":"Code-Review","score":0,"reason":"Found 0/7 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":"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":"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":"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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: 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":"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 18 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-15T20:18:37.111Z","repository_id":55646888,"created_at":"2025-08-15T20:18:37.111Z","updated_at":"2025-08-15T20:18:37.111Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271515289,"owners_count":24773369,"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":["characters","count-data","count-lines","counter","get-info","linesearch","mytools","node","search-in-text","statistics","stream","string","string-calculator","string-manipulation","string-search","text","textics","textics-stream","transformer","wordsearch"],"created_at":"2024-10-15T07:13:42.579Z","updated_at":"2025-08-22T06:44:18.599Z","avatar_url":"https://github.com/jalal246.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# textics-stream\n\n\u003e `text/ics-stream` is a node version of\n\u003e [textics](https://github.com/Jimmy02020/textics). Counts lines,\n\u003e words, chars and spaces for a stream of strings :shower:\n\n```bash\nnpm install textics-stream\n```\n\n## API\n\n```js\nimport TStream from \"textics-stream\";\n\nconst txtStream = new TStream();\n\n// Start counting\nmyStream.pipe(txtStream);\n\n// Get lat chunk stat result\ntxtStream.on(\"latChunkStat\", result =\u003e {\n  // result : {lines, words, chars, spaces}\n});\n\n// Get all stat counters\ntxtStream.getStat();\n```\n\n### Example\n\n```js\nimport TStream from \"textics-stream\";\nimport fs from \"fs\";\n\n// Create read stream for file you want to read form\nconst rStream = fs.createReadStream(myFile);\n\n// Create TexticsStream instance\nconst txtStream = new TStream();\n\n// Pass reading stream to textics\nrStream.pipe(txtStream);\n\n// For each chunk passed, give me the result\ntxtStream.on(\"latChunkStat\", result =\u003e {\n  // do something\n});\n\n// When done, give me the final result\nrStream.on(\"end\", () =\u003e {\n  const { lines, words, chars, spaces } = txtStream.getStat();\n});\n```\n\n### Related projects\n\n- [textics](https://github.com/Jimmy02020/textics) - Using textics for browser.\n\n- [packageSorter](https://github.com/jalal246/packageSorter) - Sorting packages\n  for monorepos production.\n\n- [builderz](https://github.com/jalal246/builderz) - Building your project with zero config.\n\n- [corename](https://github.com/jalal246/corename) - Extracts package name.\n\n- [get-info](https://github.com/jalal246/get-info) - Utility functions for\n  projects production.\n\n- [move-position](https://github.com/jalal246/move-position) - Moves element in given array form index-A to index-B\n\n## Tests\n\n```sh\nnpm test\n```\n\n## License\n\nThis project is licensed under the [GPL-3.0 License](https://github.com/Jimmy02020/textics-stream/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjalal246%2Ftextics-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjalal246%2Ftextics-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjalal246%2Ftextics-stream/lists"}