{"id":17528477,"url":"https://github.com/begmaroman/reading-time","last_synced_at":"2025-04-23T18:22:36.442Z","repository":{"id":121058443,"uuid":"264841419","full_name":"begmaroman/reading-time","owner":"begmaroman","description":"Reading time helps to estimate how long an article will take to read","archived":false,"fork":false,"pushed_at":"2024-03-26T21:17:17.000Z","size":4,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T02:21:46.405Z","etag":null,"topics":["article","blog","estimation","estimator","golang","reading-time"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/begmaroman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-05-18T05:56:00.000Z","updated_at":"2024-12-28T20:49:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"ec19a8bd-3923-4d53-9a52-29fd64400f39","html_url":"https://github.com/begmaroman/reading-time","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/begmaroman%2Freading-time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/begmaroman%2Freading-time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/begmaroman%2Freading-time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/begmaroman%2Freading-time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/begmaroman","download_url":"https://codeload.github.com/begmaroman/reading-time/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250487967,"owners_count":21438690,"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":["article","blog","estimation","estimator","golang","reading-time"],"created_at":"2024-10-20T15:43:51.069Z","updated_at":"2025-04-23T18:22:36.422Z","avatar_url":"https://github.com/begmaroman.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reading-time\n\n`reading-time` is the GoLang tool that helps you estimate how long an article will take to read. \nIt works perfectly with plain text, but also with `markdown` or `html`.\n\nNote that it's focused on performance and simplicity, so the number of words it will extract from other formats than plain text can vary a little. But this is an estimation right?\n\n## Installation\n\n```bash\ngo get github.com/begmaroman/reading-time\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n \n    readingtime \"github.com/begmaroman/reading-time\"\n)\n\nfunc main()  {\n\tmyArticle := \"some long long long text with ##markdown stuff and \u003cb\u003ehtml\u003c/b\u003e\"\n\testimation := readingtime.Estimate(myArticle)\n\tfmt.Println(estimation.Text)        // \"1 min read\"\n\tfmt.Println(estimation.Duration)    // 1 min\n\tfmt.Println(estimation.Words)       // 10\n}\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbegmaroman%2Freading-time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbegmaroman%2Freading-time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbegmaroman%2Freading-time/lists"}