Skip to content

Commit

Permalink
corrected yarn url
Browse files Browse the repository at this point in the history
  • Loading branch information
jackie1santana committed Jul 18, 2024
1 parent 4e37c24 commit dec0b61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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');

Expand Down Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit dec0b61

Please sign in to comment.