{"id":21845211,"url":"https://github.com/artempchela/wpm-calculator-react","last_synced_at":"2026-04-16T11:34:16.844Z","repository":{"id":213360822,"uuid":"733923249","full_name":"ArtemPchela/wpm-calculator-react","owner":"ArtemPchela","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-05T18:42:22.000Z","size":17,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-26T12:08:17.440Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ArtemPchela.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-12-20T12:49:14.000Z","updated_at":"2024-01-30T20:24:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"27fa248c-9a75-4a9a-b8f9-ef1451f1d876","html_url":"https://github.com/ArtemPchela/wpm-calculator-react","commit_stats":null,"previous_names":["artempchela/wpm-calculator-react"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtemPchela%2Fwpm-calculator-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtemPchela%2Fwpm-calculator-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtemPchela%2Fwpm-calculator-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtemPchela%2Fwpm-calculator-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArtemPchela","download_url":"https://codeload.github.com/ArtemPchela/wpm-calculator-react/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244828740,"owners_count":20517166,"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":[],"created_at":"2024-11-27T23:08:34.160Z","updated_at":"2026-04-16T11:34:16.817Z","avatar_url":"https://github.com/ArtemPchela.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Words per minutes calculator \"wpm-calculator-react\" React Component\n\nA React component for calculating estimated reading time for a given text.\n\n## Installation\n\nYou can install the `wpm-calculator-react` package via npm or yarn:\n\n```bash\nnpm i wpm-calculator-react\n# OR\nyarn add wpm-calculator-react\n```\n\n## Usage\n\nImport the wpm-calculator-react component and use it in your React application:\n\n```jsx\nimport React from \"react\";\nimport Wpm from \"wpm-calculator-react\";\n\nfunction App() {\n  const text = \"Lorem ipsum dolor sit amet, consectetur adipiscing elit...\";\n  \n  return (\n    \u003cdiv\u003e\n      \u003ch1\u003eMy Blog Post\u003c/h1\u003e\n      \u003cWpm text={text} /\u003e\n      \u003cp\u003e{text}\u003c/p\u003e\n    \u003c/div\u003e\n  );\n}\n\nexport default App;\n```\n\nAdd text after of before `Wpm` \n\n```tsx\n\u003cdiv\u003e\n    \u003cWpm text={text} /\u003e min read\n\u003c/div\u003e\n```\n\n## Props\n\n* **text** (required): The text content for which you want to calculate the reading time.\n\n* **className** (optional): An optional CSS class to style the component.\n\nyou can add your own **className** and style it in your css file\n \n```tsx\n\u003cWpm text={text} className=\"your-class_name\"/\u003e\n```\n\nor wrap with your own div and style it\n\n```tsx\n\u003cdiv className=\"your-class_name\"\u003e\n    \u003cWpm text={text} /\u003e\n\u003c/div\u003e\n```\n* **wpm** (optional): The reading speed in words per minute (default: 183).\n\nor add your own **wpm**\n\n ```tsx\n\u003cWpm text={text} wpm={250}/\u003e\n```\n\n## License\nThis project is licensed under the MIT License. See the LICENSE file for details.\n\n\n## Author\nCreated by Artsiom Pchaliankou.\n\nIf you have any questions or suggestions, please feel free to open an issue or contact me at [pchelenkovartem@gmail.com](pchelenkovartem@gmail.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartempchela%2Fwpm-calculator-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartempchela%2Fwpm-calculator-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartempchela%2Fwpm-calculator-react/lists"}