New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

month-days

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

month-days

Get the number of days in a month

  • 2.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
138
decreased by-28.87%
Maintainers
1
Weekly downloads
 
Created
Source

month-days Build Status

Get the number of days in a month

Install

$ npm install --save month-days

Usage

const monthDays = require('month-days');

monthDays(1, 2016);
//=> 29

API

monthDays([month], [year])

month

Type: number
Default: Current UTC month

Note that the month is zero-index to be consistent with the native date methods.

year

Type: number
Default: Current UTC year

License

MIT © Sindre Sorhus

Keywords

FAQs

Package last updated on 19 Dec 2016

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