year

0.2.1 • Public • Published

year NPM version

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

Install with npm

npm i year --save

Usage

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

Author

Jon Schlinkert

License

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


This file was generated by verb on December 01, 2014.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.1
    164,807
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.1
    164,807
  • 0.2.0
    1
  • 0.1.2
    1
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i year

Weekly Downloads

164,809

Version

0.2.1

License

none

Last publish

Collaborators

  • jonschlinkert