deadline-maker
v0.0.6
Published
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.
Downloads
2
Readme
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.
- 0.0.5v ------ Angular 14
- 0.0.6v ------ Angular 15
Installation
To install the deadline pipe, run the following command in your Angular project:
npm install deadline-maker
Usage
Import the DeadlinePipe module in your Angular application:
import { DeadlineModule } from 'deadline-maker';
@NgModule({
imports: [
DeadlineModule
]
})
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:
If the date is pass the Deadline - Overdue If the date is due in 2 days - 2 Days Left
License
This package is released under the ISC License.