Socket
Socket
Sign inDemoInstall

ascii-calendar

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ascii-calendar

Simple ASCII Calendar similar to Linux cal command in JavaScript


Version published
Weekly downloads
2
decreased by-50%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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 }));

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-2021 Jakub T. Jankiewicz

Keywords

FAQs

Last updated on 10 Feb 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc