{"id":13667467,"url":"https://github.com/alexito4/ReadingTimePublishPlugin","last_synced_at":"2025-04-26T15:32:57.171Z","repository":{"id":43412310,"uuid":"231749362","full_name":"alexito4/ReadingTimePublishPlugin","owner":"alexito4","description":"Reading time estimation plugin for Publish.","archived":false,"fork":false,"pushed_at":"2022-12-13T20:47:34.000Z","size":33,"stargazers_count":30,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T16:23:30.130Z","etag":null,"topics":["publish-plugin","reading-time"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":false,"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/alexito4.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":"2020-01-04T11:07:04.000Z","updated_at":"2024-12-17T08:41:57.000Z","dependencies_parsed_at":"2022-07-15T01:46:51.655Z","dependency_job_id":null,"html_url":"https://github.com/alexito4/ReadingTimePublishPlugin","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexito4%2FReadingTimePublishPlugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexito4%2FReadingTimePublishPlugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexito4%2FReadingTimePublishPlugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexito4%2FReadingTimePublishPlugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexito4","download_url":"https://codeload.github.com/alexito4/ReadingTimePublishPlugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250468474,"owners_count":21435495,"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":["publish-plugin","reading-time"],"created_at":"2024-08-02T07:00:37.606Z","updated_at":"2025-04-26T15:32:52.160Z","avatar_url":"https://github.com/alexito4.png","language":"Swift","funding_links":[],"categories":["Plugins"],"sub_categories":[],"readme":"# PublishReadingTime\n\n\n\u003ca href=\"https://github.com/alexito4/ReadingTimePublishPlugin/actions?query=workflow%3ATest+branch%3Amaster\n\"\u003e\n    \u003cimg src=\"https://github.com/alexito4/ReadingTimePublishPlugin/workflows/Test/badge.svg?branch=master\" alt=\"Status\" /\u003e\n\u003c/a\u003e\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Falexito4%2FReadingTimePublishPlugin%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/alexito4/ReadingTimePublishPlugin)\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Falexito4%2FReadingTimePublishPlugin%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/alexito4/ReadingTimePublishPlugin)\n\u003ca href=\"https://github.com/JohnSundell/Publish\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Publish-Plugin-orange.svg?style=flat\" alt=\"Publish Plugin\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://twitter.com/alexito4\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/twitter-@alexito4-blue.svg?style=flat\" alt=\"Twitter: @alexito4\" /\u003e\n\u003c/a\u003e\n\nReading time estimation plugin for [Publish](https://github.com/JohnSundell/Publish).\n\n## Installation\n\nStart by adding the dependency to your project:\n\n```swift\n    dependencies: [\n        ...\n        .package(name: \"ReadingTimePublishPlugin\", url: \"https://github.com/alexito4/ReadingTimePublishPlugin\", from: \"0.2.0\")\n    ],\n```\n\nThen assign it to your target:\n\n```swift\n    targets: [\n        .target(\n            name: \"Foo\",\n            dependencies: [\n                \"Publish\",\n                ...\n                \"ReadingTimePublishPlugin\"\n            ]\n        )\n    ]\n```\n\n## Usage\n\nThe plugin can then be used within any publishing pipeline like this:\n\n```swift\nimport ReadingTimePublishPlugin\n...\ntry DeliciousRecipes().publish(using: [\n    ...\n    .addMarkdownFiles(),\n    .installPlugin(.readingTime()),\n    ...\n])\n```\nNote that it must be installed after the Items are created (in this case by `addMarkdownFiles()` ).\n\nThen you can add the information on your Theme:\n\n```swift\nHTML(...\n.p(\"\\(item.readingTime.minutes) minutes\"),\n...\n```\n\n# Author\n\nAlejandro Martinez | http://alejandromp.com | [@alexito4](https://twitter.com/alexito4)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexito4%2FReadingTimePublishPlugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexito4%2FReadingTimePublishPlugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexito4%2FReadingTimePublishPlugin/lists"}