{"id":16796600,"url":"https://github.com/filiptammergard/text-analyzer","last_synced_at":"2025-10-06T12:56:33.495Z","repository":{"id":36971367,"uuid":"357990046","full_name":"filiptammergard/text-analyzer","owner":"filiptammergard","description":"Utility functions providing possibilities to analyze text.","archived":false,"fork":false,"pushed_at":"2024-11-17T18:16:02.000Z","size":1344,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-11T00:11:54.252Z","etag":null,"topics":["characters","reading-time","text","time","words"],"latest_commit_sha":null,"homepage":"","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/filiptammergard.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2021-04-14T17:35:37.000Z","updated_at":"2024-11-11T09:44:14.000Z","dependencies_parsed_at":"2023-02-16T04:30:42.612Z","dependency_job_id":"3072693a-5372-4f70-872d-8077d23dd2ff","html_url":"https://github.com/filiptammergard/text-analyzer","commit_stats":{"total_commits":197,"total_committers":3,"mean_commits":65.66666666666667,"dds":"0.14720812182741116","last_synced_commit":"c352080fb34947d64496f880806adb62c36e3f82"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filiptammergard%2Ftext-analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filiptammergard%2Ftext-analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filiptammergard%2Ftext-analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filiptammergard%2Ftext-analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/filiptammergard","download_url":"https://codeload.github.com/filiptammergard/text-analyzer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248317729,"owners_count":21083530,"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","reading-time","text","time","words"],"created_at":"2024-10-13T09:19:35.438Z","updated_at":"2025-10-06T12:56:28.443Z","avatar_url":"https://github.com/filiptammergard.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# text-analyzer\n\nUtility functions providing possibilities to analyze text.\n\n## Installation\n\nInstall this package:\n\n```bash\n# npm\nnpm install text-analyzer\n\n# yarn\nyarn add text-analyzer\n\n# pnpm\npnpm add text-analyzer\n```\n\n## Usage\n\n```js\nimport {\n\tcountCharacters,\n\tcountWords,\n\tcountSequences,\n\tgetReadingTime,\n} from \"text-analyzer\"\n\nconst text =\n\t\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\"\n\nconst characters = countCharacters(text)\n// characters = 445\n\nconst words = countWords(text)\n// words = 69\n\nconst sequences = countSequences(text, \"dolor\")\n// default case sensitivity is set to \"insensitive\"\n// sequences = 4\n\nconst caseInsensitiveSequences = countSequences(text, \"lorem\", {\n\tcaseSensitivity: \"insensitive\",\n})\n// caseSensitiveSequences = 1\n\nconst caseSensitiveSequences = countSequences(text, \"lorem\", {\n\tcaseSensitivity: \"sensitive\",\n})\n// caseSensitiveSequences = 0\n\nconst readingTime = getReadingTime(text)\n// default reading speed is set to 200 words per minute\n/*\n  readingTime = {\n    milliseconds: 20700\n    minutes: 0.345\n    words: 69\n  }\n*/\n\nconst customReadingSpeedReadingTime = getReadingTime(text, {\n\twordsPerMinute: 100,\n})\n/*\n  customReadingSpeedReadingTime = {\n    milliseconds: 41400\n    minutes: 0.69\n    words: 69\n  }\n*/\n```\n\n## Licence\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiliptammergard%2Ftext-analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffiliptammergard%2Ftext-analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiliptammergard%2Ftext-analyzer/lists"}