Skip to content

list a range of years from the current year or a selected year

Notifications You must be signed in to change notification settings

glopezep/ye-ars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ye-ars

List a range of years from the current year or selected year.

Install

npm install --save ye-ars

Usage

const years = require('ye-ars')

const options = {
  count: 3
}

const result = years(options) // -> [2018, 2019, 2020]

API

years(options: Object) -> Array

  • options (Object)
    • initialYear (Number) initial year to start counting
    • count (Number) number of years to list

License

MIT © Guillermo Lopez

About

list a range of years from the current year or a selected year

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published