1.1.1 • Published 1 year ago
deadline-formatter v1.1.1
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:
- 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 MIT License.