Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abakermi/vuejs-timeago
A simple time-ago component for vuejs
https://github.com/abakermi/vuejs-timeago
Last synced: about 1 month ago
JSON representation
A simple time-ago component for vuejs
- Host: GitHub
- URL: https://github.com/abakermi/vuejs-timeago
- Owner: abakermi
- Created: 2020-08-07T12:43:21.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-07T12:56:46.000Z (over 4 years ago)
- Last Synced: 2024-10-04T14:48:28.556Z (3 months ago)
- Language: Vue
- Size: 163 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vuejs-timeago
[![Build Status](https://travis-ci.org/abakermi/vuejs-timeago.svg?branch=master)](https://travis-ci.org/abakermi/vuejs-timeago) [![npm version](https://badge.fury.io/js/vuejs-timeago.svg)](https://badge.fury.io/js/vuejs-timeago )A simple time-ago component for vuejs
## Installation### Install via CDN
```htmlVue.use(VueTimeAgo.default)
```
### Install via NPM
```sh
$ npm install vuejs-timeago --save
```#### Register as Component
```js
import Vue from 'vue'
import VueTimeAgo from 'vuejs-timeago '
export default {
name: 'App',
components: {
VueTimeAgo
}
}
```#### Register as Plugin
```js
import Vue from 'vue'
import VueTimeAgo from 'vuejs-timeago '
Vue.use(VueTimeAgo)
```## Usage
```js
ago
import VFeedYoutube from 'vue-feeds-youtube'
export default {
name: 'App',
components: {
VFeedYoutube
}
}```
## Props
|Props|Description|Type|Required|
|-----|-----------|----|--------|
|date|date string to calculate time from |String|true
|format|optional date format |String|true
|iso|set format to iso |String|false## License
vuejs-timeago is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)