# month-days-by-year

> Get the number of days for each month in a given year.

Latest version **1.0.1** (published 2017-03-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install month-days-by-year
pnpm add month-days-by-year
yarn add month-days-by-year
bun add month-days-by-year
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-03-12 |
| First published | 2017-03-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Michael Wuergler |
| Maintainers | radiovisual |
| Keywords | leap, year, given, for, month, in, days, get, fetch |

## Links

- npm: https://www.npmjs.com/package/month-days-by-year
- Repository: https://github.com/radiovisual/month-days-by-year
- Homepage: https://github.com/radiovisual/month-days-by-year#readme
- Issues: https://github.com/radiovisual/month-days-by-year/issues
- npm.io page: https://npm.io/package/month-days-by-year

## Dependencies (1)

- [month-days](https://npm.io/package/month-days.md) ^2.1.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-03-12
- 1.0.0 — 2017-03-12

## README

# month-days-by-year [![Build Status](https://travis-ci.org/radiovisual/month-days-by-year.svg?branch=master)](https://travis-ci.org/radiovisual/month-days-by-year)

> Get the number of days for each month in a given year. Honors leap year.


## Install

```
$ npm install --save month-days-by-year
```


## Usage

```js
const monthDaysByYear = require('month-days-by-year');

monthDaysByYear(2017);
//=> [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]

leapYear(2000);
//=> [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
```


## API

### monthDaysByYear(year)

#### year

Type: `string` | `number`

The year from which you want a list of months.

## License

MIT © [Michael Wuergler](http://numetriclabs.com)

---
_Source: https://npm.io/package/month-days-by-year · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
