1.0.4 • Published 4 years ago

month-md v1.0.4

Weekly downloads
95
License
UNLICENSED
Repository
github
Last release
4 years ago

month-md

Produce a markdown (.md) table for a year, month, language.

Defaults:

  • current year
  • current month
  • days of the week in english.

Use

const monthMd = require("month-md")

console.log(monthMd.monthTable())
console.log(monthMd.monthTable(2021,3))
console.log(monthMd.monthTable(2021,3,"fr"))
console.log(monthMd.monthTable("pt"))

or

$ npx month-md
$ npx month-md 2021 03
$ npx month-md 2021 03 es
$ npx month-md pt

Result (markdown):

| Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday |
| :----: | :----: | :-----: | :-------: | :------: | :----: | :------: |
|        |   1    |    2    |     3     |    4     |   5    |    6     |
|   7    |   8    |    9    |    10     |    11    |   12   |    13    |
|   14   |   15   |   16    |    17     |    18    |   19   |    20    |
|   21   |   22   |   23    |    24     |    25    |   26   |    27    |
|   28   |   29   |   30    |    31     |          |        |          |

or

SundayMondayTuesdayWednesdayThursdayFridaySaturday
123456
78910111213
14151617181920
21222324252627
28293031

Languages

You can switch the language to retrieve differente days of the week. Thanks to wikipedia

Supports:

codelang
bnবাংলা
dadansk
enenglish
esespañol
frfrançais
hiहिन्दी, हिंदी
itItaliano
ja日本語 (にほんご)
ko한국어
ptportuguês
ruрусский
thไทย
yiייִדיש
zh中文 (Zhōngwén), 汉语, 漢語

Pending:

  • iu | ᐃᓄᒃᑎᑐᑦ

Part of the Cotoron series

Code + Toronto Cotoron is an experimental coding project started in Toronto with a group of friends. We start a new 30-day sprint project each month and repeat. Check out what we’re building and our journey!

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.2

4 years ago

0.0.1-beta

4 years ago

0.0.1-beta.1

4 years ago

0.0.1-alpha.beta

4 years ago

0.0.1-alpha.10

4 years ago

0.0.1-alpha.8

4 years ago

0.0.1-alpha.9

4 years ago

0.0.1-alpha.7

4 years ago

0.0.1-alpha.7.1

4 years ago

0.0.1-alpha.6.2

4 years ago

0.0.1-alpha.6.1

4 years ago

0.0.1-alpha.6

4 years ago

0.0.1-alpha.5.3

4 years ago

0.0.1-alpha.5.2

4 years ago

0.0.1-alpha.5.1

4 years ago

0.0.1-alpha.5

4 years ago

0.0.1-alpha.2

4 years ago

0.0.1-alpha

4 years ago

0.0.1

4 years ago