semana

weekday formatter

Semana

weekday formatter

Semana is available via npm and Bower:

npm install semana
bower install semana
var semana = require('semana');
semana(['mon', 'wed', 'fri']) //=> "Mon, Wed, Fri" 
semana(['mon', 'tue', 'wed']) //=> "Mon - Wed" 
semana(['sat', 'sun']) //=> "Weekends" 

Returns a version of semana that uses strings from the strings hash. See en.json for the keys.

The exported semana is equivalent to semana.lang(require('semana/en.json')).

MIT.