Skip to content

ASCII calendar that can be used in Node.js or Browser

License

Notifications You must be signed in to change notification settings

jcubic/calendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASCII Calendar

Simple ASCII Calendar similar to Linux cal command in JavaScript

Installation

npm install ascii-calendar

Usage

const cal = require('ascii-calendar');
console.log(cal({ year: 2021, month: 4, lang: 'en-US' }));

Output:

         May 2021
Su  Mo  Tu  We  Th  Fr  Sa
                         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
  • It automatically detect locale and render proper translation, but you can change it.
  • First day of the week also depend on locale.

Options

  • year: full year
  • month: indexed from 0
  • lang: language (default system or browser locale)

License

Released under MIT license
Copyright (c) 2018-2024 Jakub T. Jankiewicz

About

ASCII calendar that can be used in Node.js or Browser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published