day-formatter
v1.0.0
Published
Formats days of the week
Downloads
1
Readme
DayFormatter
Convert days in an array to a concise human readable string.
created with node v7.7.4
, and yarn 0.21.3
Usage
DayFormatter.formatDayRange([1,2,3,5,6,7]);
// => "Monday - Wednesday, Friday - Sunday"
Setup
- install dependencies:
yarn
- (optional) install jasmine:
yarn global add jasmine
Test
- (jasmine)
yarn run test