1.0.0 • Published 4 years ago

day-formatter v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

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

  1. install dependencies: yarn
  2. (optional) install jasmine: yarn global add jasmine

Test

  • (jasmine) yarn run test