Simple-Week-calendar.
" simple-week-calendar " module is development module based on moment js. you can easily setup and retrieve weekly date calendar information from json format.
Pre Requesting.
This module will prerequest "bluebird" and "moment" npm package. you have to have install these tow packages in your project folder.
1- serfe into yor project folder
2- open the terminal and run
$ npm install Bluebird moment --save
Installation
add " simple-week-calendar " dependency to your project, simply run the following code in your terminal.
$ npm install simple-week-calendar --save
How it works
This node package develop for simply get weekly date information as joson format.
import the week callander dependancy.
const {DateByWeek} = require
to get details of the current week, simply pass the index value to the " DateByWeek " reference Eg:- get current week
const {DateByWeek} = requireconst thisWeek = DateByWeek;console.log;
output:-
for next week
DateByWeek;
for the previous week
DateByWeek;
the week after next week.
DateByWeek;
License
MIT