{"id":19544466,"url":"https://github.com/selectnull/jquery-readingstats","last_synced_at":"2026-04-18T03:31:35.301Z","repository":{"id":4124408,"uuid":"5235617","full_name":"selectnull/jquery-readingstats","owner":"selectnull","description":"jQuery plugin to calculate reading stats (word count, reading time)","archived":false,"fork":false,"pushed_at":"2014-03-15T13:34:27.000Z","size":136,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-29T16:56:38.813Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/selectnull.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":"2012-07-30T17:53:27.000Z","updated_at":"2016-11-24T23:22:09.000Z","dependencies_parsed_at":"2022-08-06T15:00:36.394Z","dependency_job_id":null,"html_url":"https://github.com/selectnull/jquery-readingstats","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/selectnull/jquery-readingstats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selectnull%2Fjquery-readingstats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selectnull%2Fjquery-readingstats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selectnull%2Fjquery-readingstats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selectnull%2Fjquery-readingstats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/selectnull","download_url":"https://codeload.github.com/selectnull/jquery-readingstats/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selectnull%2Fjquery-readingstats/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31955626,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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-11-11T03:29:04.178Z","updated_at":"2026-04-18T03:31:35.284Z","avatar_url":"https://github.com/selectnull.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"===========================\njQuery reading stats plugin\n===========================\n\njQuery reading stats plugin, v1.0\n\nUse it to calculate and display time to read a piece of text,\neg a blog post.\n\n\nHow to use it?\n==============\n\nThere are two arguments and both are optional. The first is options object\nwith which you can customize reading speed (in words per minute) and\nformatter funtion to display the result.\n\n* *readingSpeed*, default value is 200 words per minute\n* *format*, formatter function that takes a number (of seconds)\n  and returns a string like 2 min 45 sec\n\nThere are two ways to call it. First is to get\nresult directly, like this:\n\n    var rs = $('#my-content').readingStats({\n        readingSpeed: 100,\n        format: function (x) {return x.toString() + ' sec';}\n    });\n\n    console.log(rs.wordCount); // word count\n    console.log(rs.secondsToRead); // number of seconds\n    console.log(rs.format()); // formatted output\n\nIf you want to do something else with selector, you can specify\ncallback function as second argument and chain whatever\njQuery methods after it.\n\n    $('#my-content').readingStats({readingSpeed: 240}, function (stats) {\n            console.log(stats);\n            // do something with stats object\n        }\n    ).fadeOut().fadeIn();\n\n\nLicence\n=======\n\nThe code is MIT licensed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselectnull%2Fjquery-readingstats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fselectnull%2Fjquery-readingstats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselectnull%2Fjquery-readingstats/lists"}