$ npm install year
Simple utility to get the current year with 2 or 4 digits.
npm i year --save
var year = require('year');
console.log(year());
//=> 2014
console.log(year('yyyy'));
//=> 2014
console.log(year('yy'));
//=> 14
Jon Schlinkert
Copyright (c) 2014 Jon Schlinkert
Released under the MIT license
This file was generated by verb on December 01, 2014.
© 2010 - cnpmjs.org x YWFE | Home | YWFE