From dec0b61423387e90a07930067e652d39c18c42c0 Mon Sep 17 00:00:00 2001 From: jackie1santana Date: Thu, 18 Jul 2024 14:07:06 -0500 Subject: [PATCH] corrected yarn url --- README.md | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index da3af5c..041e534 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ const showTimeAgo = showtimeago console.log(showTimeAgo(new Date())) ``` -**Yarn**: [https://yarnpkg.com/package/showtimeago ](https://yarnpkg.com/package?q=showtimeago&name=showtimeago&version=3.3.13)`yarn add showtimeago` +**Yarn**: [https://yarnpkg.com/package/showtimeago ](https://yarnpkg.com/package?q=showtimeago&name=showtimeago)`yarn add showtimeago` ___ #### By default, showTimeAgo updates only when the page is reloaded @@ -117,7 +117,7 @@ const intervalId = setInterval(updateTimeAgo, 60000); // setTimeout(() => clearInterval(intervalId), 3600000); ``` -### Node Example with Real-time Updates Via Comment Thread +## Node Example with Real-time Updates Via Comment Thread ```javascript const showTimeAgo = require('showtimeago'); @@ -289,7 +289,7 @@ export default function App() { } ``` -### React Example with Real-time Updates Via Comment Thread +## React Example with Real-time Updates Via Comment Thread This example demonstrates how to use the `showtimeago` package in a React application to display the time ago for comments, updating every minute. diff --git a/package.json b/package.json index 5123c28..c513b35 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "showtimeago", - "version": "4.0.7", + "version": "4.0.8", "description": "ShowTimeAgo is a utility that provides a human-readable format of how long ago a date was with zero configuration.", "main": "index.js", "scripts": {