Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ascii-calendar

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ascii-calendar

Simple ASCII Calendar similar to Linux cal command in JavaScript

  • 0.2.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-50%
Maintainers
0
Weekly downloads
 
Created
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, 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

Keywords

FAQs

Package last updated on 16 Dec 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc