List a range of years from the current year or selected year.
npm install --save ye-ars
const years = require('ye-ars')
const options = {
count: 3
}
const result = years(options) // -> [2018, 2019, 2020]
options
(Object)initialYear
(Number) initial year to start countingcount
(Number) number of years to list
MIT © Guillermo Lopez