1.0.2 • Published 1 year ago

quick_date v1.0.2

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

QuickDate

Why?

Generate Dates Quickly

Installation

npm i quick_date

Usage

const getDate = require('quick_date');

Method

getDate(numberOfNextMonth,includeCurrentMonth);

Example

Example 01 - Generate Next 4 Month with Current Month

let withCurrentMonth = getDate(4,true);
console.log(withCurrentMonth);

Output

[
  { name: 'Feb - 2023' },
  { name: 'Mar - 2023' },
  { name: 'Apr - 2023' },
  { name: 'May - 2023' }
]

Example 02 - Generate Next 4 Month Without Current Month

let withOutCurrentMonth = getDate(4,false);
console.log(withOutCurrentMonth);

Output

[
  { name: 'Mar - 2023' },
  { name: 'Apr - 2023' },
  { name: 'May - 2023' },
  { name: 'Jun - 2023' }
]

License

Licensed under MIT

Copyright (c) 2023 Vithushiyan Pathivarathan

Other Updates are Comming Soon :)

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago