New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

expand-year

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expand-year

Expand a short year to a full year (15 -> 2015)

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
41K
9.87%
Maintainers
1
Weekly downloads
 
Created
Source

expand-year Build Status

Expand a short year to a full year (15 -> 2015)

Install

$ npm install --save expand-year

Usage

var expandYear = require('expand-year');

expandYear(15) // 2015

API

expandYear(year, [now]) -> number

year

Required
Type: number

The year to expand. A one or two digit number is expected.

now

Type: date
Default: new Date()

The date object from which to calculate the current year.

License

MIT © Ben Drucker

Keywords

number

FAQs

Package last updated on 02 Jun 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts