month-list
v1.0.6
Published
[![npm version](https://badge.fury.io/js/month-list.svg)](https://badge.fury.io/js/month-list)
Downloads
9
Readme
month-list
Module exports two functions getMonthList
and getWeekDays
Function returns month list in your locale;
How to install
npm install month-list --save
or
yarn add month-list
Examples
🇬🇧 getMonthList('en')
will return:
January
February
March
April
May
June
July
August
September
October
November
December
🇬🇧 getMonthList('en', 'short')
will return:
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
🇬🇧 getWeekDays('en')
will return:
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday
🇬🇧 getWeekDays('en', 'long', true)
will return:
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
🇬🇧 getWeekDays('en', 'short')
will return:
Mon
Tue
Wed
Thu
Fri
Sat
Sun
🇬🇧 getWeekDays('en', 'narrow')
will return:
M
T
W
T
F
S
S