# year

> Simple utility to get the current year with 2 or 4 digits.

Latest version **0.2.1** (published 2014-12-01) · 0 weekly downloads

## Install

```sh
npm install year
pnpm add year
yarn add year
bun add year
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2014-12-01 |
| First published | 2014-04-21 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.8 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Jon Schlinkert |
| Maintainers | jonschlinkert |

## Links

- npm: https://www.npmjs.com/package/year
- Repository: https://github.com/jonschlinkert/year
- Issues: https://github.com/jonschlinkert/year/issues
- npm.io page: https://npm.io/package/year

## Recent versions

- 0.2.1 (latest) — 2014-12-01
- 0.2.0 — 2014-12-01
- 0.1.2 — 2014-04-21
- 0.1.1 — 2014-04-21
- 0.1.0 — 2014-04-21

## README

# year [![NPM version](https://badge.fury.io/js/year.svg)](http://badge.fury.io/js/year)

> Simple utility to get the current year with 2 or 4 digits.

## Install with [npm](npmjs.org)

```bash
npm i year --save
```

## Usage

```js
var year = require('year');

console.log(year());
//=> 2014
console.log(year('yyyy'));
//=> 2014
console.log(year('yy'));
//=> 14
```

## Author

**Jon Schlinkert**
 
+ [github/jonschlinkert](https://github.com/jonschlinkert)
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert) 

## License
Copyright (c) 2014 Jon Schlinkert  
Released under the MIT license

***

_This file was generated by [verb](https://github.com/assemble/verb) on December 01, 2014._

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