diff --git a/README.md b/README.md index b8ad489..ccc5593 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,24 @@ This utility only takes in a newDate() format time, for example: `new Date().toISOString()` outputs: `2022-07-02T23:12:01.449Z` _ISO date format_ ---- +**CDN**: +- https://cdn.jsdelivr.net/npm/showtimeago/index.js +- https://unpkg.com/browse/showtimeago/index.js + +_This essentially a common Js module so ignore error: `Uncaught ReferenceError: module is not defined + at showTimeAgo.js:115:1` via client side._ + +**CDN Set up:** + +`` +``` +const showTimeAgo = showtimeago + +console.log(showTimeAgo(new Date())) +``` + +**Yarn**: https://yarnpkg.com/package/showtimeago `yarn add showtimeago` +___ #### By default `showTimeAgo` only updates on page reload _How to show `showTimeAgo` updated time without a page reload ?_ diff --git a/package.json b/package.json index 56a9edd..b247f65 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "showtimeago", - "version": "3.3.11", + "version": "3.3.12", "description": "Show Time Ago is a utility that allows you to see how long ago a date was.", "main": "index.js", "scripts": {