# holtdataformater

> Simplify Formating your date in vuejs

Latest version **1.0.6** (published 2021-10-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install holtdataformater
pnpm add holtdataformater
yarn add holtdataformater
bun add holtdataformater
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2021-10-25 |
| First published | 2021-10-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Abdalrhman hussin |
| Maintainers | abdalrhman12312 |
| Keywords | vue, dateFormater, Holtdateformater |

## Links

- npm: https://www.npmjs.com/package/holtdataformater
- Repository: https://github.com/AbdalrhmanHussin/HoltDateFormater
- Homepage: https://github.com/AbdalrhmanHussin/HoltDateFormater#readme
- Issues: https://github.com/AbdalrhmanHussin/HoltDateFormater/issues
- npm.io page: https://npm.io/package/holtdataformater

## Dependencies (1)

- [build-library](https://npm.io/package/build-library.md) ^1.0.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.6 (latest) — 2021-10-25
- 1.0.5 — 2021-10-25
- 1.0.4 — 2021-10-25
- 1.0.3 — 2021-10-25
- 1.0.2 — 2021-10-25
- 1.0.1 — 2021-10-25

## README

# HoltDateFormater

## Holt is vue-plugin used to simplify formatting the provided date into  the format that you want in easy way 

Core Features
- Get time passed since a certain date in a define formate 
- Get days,month,years that passed since a certain date in a define formate 
- Check if that date is yesterday or tommorrow or today


### first you need to install the plugin 
```
npm i holtdataformater
```
```
import HoltDateFormater from 'holtdataformater';

let holtOptions = {
    shortTrack: true,
    longTrack: false,
    percies: true,
    formate: true
}

app.use(HoltDateFormater,holtOptions)

 ``` 
 
 ```
 <p v-HoltFormater:[formate]="date"></p>
export default ({
    data()
    {
        return {
            date: "3/23/2020",
            formate: 'dd ll ss qq ww jj yy  hh:ii:zz'
        }
    },
})
```
 
Option | Default
------------ | -------------
shortTrack| true
longTrack | false
percies   | false
formate   | true


## ShortTrack 

Check if the provided date is today or yesterday or tommorrow

## LongTrack 

Get the number of days or months or years that passed since that date 

Ex: today is 10/19/2021 and i want to get time left until 10/22/2021 the output will be 3 days

## Percies 

Work only when long track is on lets say that i want to get the time passed since  10/10/2020 if today is 11/10/2021 without percies we will get 1 year but if it on we will get 1 year 1 month

## formate 

key | value
------------ | -------------
dd | day in number 
ll | day as string
ss   | day (short version) as string 
qq   | month (short version) as string
ww   | month as string
jj   | month in number
yy   | year
hh   | hour
ii   | min
zz   | sec

---
_Source: https://npm.io/package/holtdataformater · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
