{"id":13426063,"url":"https://github.com/jalal246/textics","last_synced_at":"2025-04-14T05:32:03.391Z","repository":{"id":37029247,"uuid":"100500572","full_name":"jalal246/textics","owner":"jalal246","description":"📉 JavaScript Text Statistics that counts lines, words, chars, and spaces.","archived":false,"fork":false,"pushed_at":"2022-08-30T16:32:55.000Z","size":167,"stargazers_count":36,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-27T19:51:58.545Z","etag":null,"topics":["characters","count-data","count-lines","counter","counts-lines","curl","get-info","linesearch","memo","mytools","search-in-text","statistics","stream","string","string-calculator","string-search","text","textics","tools","wordsearch"],"latest_commit_sha":null,"homepage":"https://jalal246.github.io/textics/","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-16T14:50:53.000Z","updated_at":"2023-06-05T15:59:46.000Z","dependencies_parsed_at":"2023-01-16T15:01:37.669Z","dependency_job_id":null,"html_url":"https://github.com/jalal246/textics","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jalal246%2Ftextics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jalal246%2Ftextics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jalal246%2Ftextics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jalal246%2Ftextics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jalal246","download_url":"https://codeload.github.com/jalal246/textics/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248826738,"owners_count":21167733,"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","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","counts-lines","curl","get-info","linesearch","memo","mytools","search-in-text","statistics","stream","string","string-calculator","string-search","text","textics","tools","wordsearch"],"created_at":"2024-07-31T00:01:25.513Z","updated_at":"2025-04-14T05:32:03.137Z","avatar_url":"https://github.com/jalal246.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# textics\n\n\u003e `text/ics` counts lines, words, chars and spaces for a given string :page_with_curl: :memo:\n\n```bash\nnpm install textics\n```\n\n## API\n\n```js\nconst { lines, words, chars, spaces } = textics(str);\n```\n\n### Example\n\n```js\nconst { textics } = require(\"textics\");\n\nconst result = textics(\"you got the power\");\n\nexpect(result).to.deep.equal({\n  lines: 1,\n  words: 4,\n  chars: 14,\n  spaces: 3\n});\n```\n\n### Using textics with stream\n\n- [textics-stream](https://github.com/jalal246/textics-stream)\n\n### Related projects\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/jalal246/textics/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjalal246%2Ftextics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjalal246%2Ftextics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjalal246%2Ftextics/lists"}