JSPM

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

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

Install with npm:

npm i year --save-dev

Usage

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

Author

Jon Schlinkert

Brian Woodward

License

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


This file was generated by verb-cli on April 21, 2014.