1.1.1 • Published 1 year ago

deadline-formatter v1.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Angular Deadline Pipe

This is an Angular pipe that converts dates of a given format to a deadline format. The deadline format shows the time remaining until the deadline date in a human-readable format.

Getting Started

Instructions on how to get started with the project.

Installation

To install the deadline pipe, run the following command in your Angular project:

npm install deadline-formatter

Usage

Import the DeadlinePipe module in your Angular application:

import { DeadlinePipeModule } from 'deadline-formatter';

@NgModule({
  imports: [
    DeadlinePipeModule
  ]
})
export class AppModule { }

In Your Component

<p>Deadline: {{ deadline | deadline }}</p>

Input Format

The input date must be a string in the format of YYYY-MM-DD.

Output Format

The output format shows the days remaining until the deadline date in a human-readable format.

For Example:

  1. If the date is pass the Deadline - Overdue
  2. If the date is due in 2 days - 2 Days Left

License

This package is released under the MIT License.

1.1.1

1 year ago

1.1.0

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago