# dayjs-greet

> Time-based greeting plugin for dayjs

Latest version **1.1.2** (published 2024-02-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install dayjs-greet
pnpm add dayjs-greet
yarn add dayjs-greet
bun add dayjs-greet
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2024-02-26 |
| First published | 2022-08-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 37.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Dev-Rise |
| Maintainers | dev-rise |
| Keywords | dayjs, date, datetime, greet, greeting, time-based, welcome |

## Links

- npm: https://www.npmjs.com/package/dayjs-greet
- Repository: https://github.com/Dev-Rise/dayjs-greet
- Homepage: https://github.com/Dev-Rise/dayjs-greet#README
- Issues: https://github.com/Dev-Rise/dayjs-greet/issues
- npm.io page: https://npm.io/package/dayjs-greet

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 1.1.2 (latest) — 2024-02-26
- 1.1.1 — 2024-01-09
- 1.1.0 — 2023-08-31
- 1.0.0 — 2022-08-18

## README

# DayJS Greet Plugin

A [Day.js](https://day.js.org/) plugin to get time-based greeting.

### Installation
`npm i dayjs-greet`

### Initialization

```js
import dayjs from 'dayjs'
import greetPlugin from 'dayjs-greet'

// import dayjs locales before you extend dayjs
// import 'dayjs/locale/de';
dayjs.extend(greetPlugin)
```

### Usage

```js
dayjs('2022-03-08 08:00:00').greet() // Good morning
dayjs('2022-03-08 08:00:00').greet(' Your Name!') // Good morning Your Name!
dayjs('2022-03-08 13:00:00').greet() // Good afternoon
dayjs('2022-03-08 13:00:00').greet(' Your Name!') // Good afternoon Your Name!
dayjs('2022-03-08 20:00:00').greet() // Good evening
dayjs('2022-03-08 20:00:00').greet(' Your Name!') // Good evening Your Name!
```

### Contributors

![contributers](https://contrib.rocks/image?repo=dev-rise/dayjs-greet)

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