{"id":15509681,"url":"https://github.com/willin/hexo-wordcount","last_synced_at":"2025-04-05T13:06:03.893Z","repository":{"id":57263818,"uuid":"37584611","full_name":"willin/hexo-wordcount","owner":"willin","description":"A Word Count Plugin for Hexo","archived":false,"fork":false,"pushed_at":"2023-04-28T15:30:25.000Z","size":28,"stargazers_count":180,"open_issues_count":1,"forks_count":22,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-29T22:37:31.236Z","etag":null,"topics":["hexo","hexo-plugin","hexo-wordcount","plugin","post-minutes","wordcount"],"latest_commit_sha":null,"homepage":"https://npmjs.org/package/hexo-wordcount","language":"JavaScript","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/willin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":"willin","custom":"https://afdian.net/@willin"}},"created_at":"2015-06-17T09:06:37.000Z","updated_at":"2024-10-17T00:01:01.000Z","dependencies_parsed_at":"2022-08-25T02:51:51.828Z","dependency_job_id":null,"html_url":"https://github.com/willin/hexo-wordcount","commit_stats":{"total_commits":23,"total_committers":2,"mean_commits":11.5,"dds":0.04347826086956519,"last_synced_commit":"ccceed3df38cc1529ba7bd067d72f8a440ae94a2"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Fhexo-wordcount","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Fhexo-wordcount/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Fhexo-wordcount/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willin%2Fhexo-wordcount/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willin","download_url":"https://codeload.github.com/willin/hexo-wordcount/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246725589,"owners_count":20823659,"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":["hexo","hexo-plugin","hexo-wordcount","plugin","post-minutes","wordcount"],"created_at":"2024-10-02T09:43:29.189Z","updated_at":"2025-04-05T13:06:03.875Z","avatar_url":"https://github.com/willin.png","language":"JavaScript","funding_links":["https://github.com/sponsors/willin","https://afdian.net/@willin"],"categories":[],"sub_categories":[],"readme":"# Hexo-WordCount\n\n[![npm](https://img.shields.io/npm/v/hexo-wordcount.svg?style=plastic)](https://npmjs.org/package/hexo-wordcount) [![npm](https://img.shields.io/npm/dm/hexo-wordcount.svg?style=plastic)](https://npmjs.org/package/hexo-wordcount) [![npm](https://img.shields.io/npm/dt/hexo-wordcount.svg?style=plastic)](https://npmjs.org/package/hexo-wordcount)\n\n## Installation\n\n```bash\nyarn add hexo-wordcount\n# or\nnpm i --save hexo-wordcount\n```\n\n## Usage\n\n### 字数统计 WordCount\n\n\n```js\nwordcount(post.content)\n```\n\n### 阅读时长预计 Min2Read\n\n```js\nmin2read(post.content)\n```\n\n设置阅读速度 Set Reading Speed:\n\n```js\nmin2read(post.content, {cn: 300, en: 160})\n// p.s. (v3.0.0 added)\n```\n\n### 总字数统计 TotalCount\n\n```js\ntotalcount(site)\n```\n\n## Demo\n\n### Swig\n\nPost Count:\n\n```swig\n   \u003cspan class=\"post-count\"\u003e{{ wordcount(post.content) }}\u003c/span\u003e\n```\n\nPost Minutes to Read:\n\n```swig\n   \u003cspan class=\"post-count\"\u003e{{ min2read(post.content) }}\u003c/span\u003e\n```\n\nTotal Count:\n\n```swig\n   \u003cspan class=\"post-count\"\u003e{{ totalcount(site) }}\u003c/span\u003e\n```\n\n### Ejs\n\nPost Count:\n\n```ejs\n   \u003cspan class=\"post-count\"\u003e\u003c%= wordcount(post.content) %\u003e\u003c/span\u003e\n```\n\nPost Minutes to Read:\n\n```ejs\n   \u003cspan class=\"post-count\"\u003e\u003c%= min2read(post.content) %\u003e\u003c/span\u003e\n```\n\nTotal Count:\n\n```ejs\n   \u003cspan class=\"post-count\"\u003e\u003c%= totalcount(site) %\u003e\u003c/span\u003e\n```\n\n### Jade\n\nPost Count:\n\n```jade\n   span.post-count= wordcount(post.content)\n```\n\nPost Minutes to Read:\n\n```jade\n    span.post-count= min2read(post.content)\n```\n\n\nTotal Count:\n\n```swig\n   span.post-count= totalcount(site)\n```\n\n\n## LICENSE\n\nMIT\n\nAlipay Donation(通过支付宝捐赠)：\n\n![qr](https://cloud.githubusercontent.com/assets/1890238/15489630/fccbb9cc-2193-11e6-9fed-b93c59d6ef37.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillin%2Fhexo-wordcount","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillin%2Fhexo-wordcount","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillin%2Fhexo-wordcount/lists"}