{"repo":"runkids/vue2-timeago","free":true,"listed":false,"github":"https://github.com/runkids/vue2-timeago","clone":"git clone https://github.com/runkids/vue2-timeago.git","description":":raised_hands: A vue component used to format date with time ago statement. :speech_balloon:","language":"HTML","stars":86,"topics":["vue","timeago","vue-components","vue-timeago","timeago-vue","javascript","vue3","vite"],"license":"MIT","category":"ui-components","readme_excerpt":"vue2-timeago vue2-timeago V2 🔥 NEW vue2-timeago for Vue 3 - Localization supported - Show tooltip - Auto refresh time - When time refresh call a customizable function - Formats a date/timestamp to: - just now - 5m - 3h - 2 days ago - 2017-08-03 - Rules: - less than 1 minute , show just now - 1 minute 1 hour , show minutes ago - 1 hour 1 day , show hours ago - 1 day 1 month( 31 days ) , show days ago - more than 1 month( 31 days ) , show yyyy-mm-dd hh:mm FOR 1.X PLEASE GO TO THE 1.x BRANCH Navigation - Changelog - Installation - Usage - Examples - Props - Contributions Live Demo Local Demo Installation Get from npm / yarn: or just include vue2-timeago.umd.min.js to your view like Usage Use this inside your app: With Default CSS or just include vue2-timeago.css HTML Custom locale You can register new locales at runtime without editing library files. Examples 1. locale Default locale is en, and the library supports en and zh TW. 2. datetime - Note. Don't bind with new Date() when you use refresh property. Because every time refresh will get a new date value. If you want use new Date() , just remove datetime property. 3. refresh 4. tooltip - Base on v-tooltip, you can use placement attribute that are allowed in v-tooltip. 5. tooltip options - Default options: - Custom options - More info see . 6. long 7. vue2-timeago event You can do something when time refresh every time Parameters example: 8. native event Props Property Type Default Description ------------ ------------ ------","default_branch":null,"files":null,"tree":[],"storefront":"/r/runkids","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/runkids/vue2-timeago/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}