Skip to content

Conversation

@qamar-z
Copy link

@qamar-z qamar-z commented Dec 22, 2025

Add realReadTime method to calculate reading time in minutes and seconds.

Existing methods returns explicit results where if content is of a few words, they return 1 minute due to ceil. This newly added method will return minutes and seconds in a form of array do be more precise while displaying the read time.

Changes

Added realReadTime method to calculate reading time in minutes and seconds.

Add realReadTime method to calculate reading time in minutes and seconds.

Existing methods returns explicit results where if content is of a few words, they return 1 minute due to ceil. This newly added method will return minutes and seconds in a form of array do be more precise while displaying the read time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant