0.1.1 • Published 3 years ago

vue-ago v0.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

V-Ago

Display Human Readable Time from a JS Date Object / MYSQL Timestamp String

Basic Usage

<template>
  <div>
    <v-ago :date="exampleParsedDate" />
  </div>
</template>

<script>
import VAgo from 'vue-ago';

export default {
  components: {
    VAgo
  },
  data() {
    return {
      
    }
  }
}
</script>

MySQL (Default: false)

  • If set true, accepts a MySQL Timestamp string
  • If false, accepts a JS Date object
<v-ago :mysql="true" :mysqlTimestamp="p.created_at" />

Remaining Tasks

  • Build a Gitpage
  • Test code efficiency
  • Write test cases
  • Rollup deployment
  • Using Date FNS?
  • Write documentation
0.1.1

3 years ago

0.1.0

3 years ago