0.1.0 • Published 3 years ago

get-sprint v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

getSprint

A function to retrieve a sprint of a date given with the format of PROJECT-NAME_YY_DD

Installation

npm install get-sprint

Available parameters

Param positionNameDefault value
1stDate to calculateCurent date
2ndProject name""
3rdSprint weeks2
4thSeparator"_"

Use

Get current date sprint

const sprint = getSprint();

Get sprint of date given with project name

const sprint = getSprint(new Date("2021-01-05"), "PROJECT");