JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 125143
  • Score
    100M100P100Q169668F

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

Package Exports

  • year

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (year) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.