ye-ars

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i ye-ars

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • glopezep