Navigate betwen UZH semesters, like FS14 -> HS14 -> FS15


001.2.14 years ago6 years agoMinified + gzip package size for @jonny/uzh-semesters in KB


UZH Semesters

Library for navigating and validating semester short codes from the University of Zurich.

var uzhSemesters = require('@jonny/uzh-semesters');
uzhSemesters.next('FS14') // => HS14
uzhSemesters.last('HS07') // => FS07
uzhSemesters.last('WS0607') // => SS06
uzhSemesters.last('DSAFASKFNSAD') // => null
uzhSemesters.isValid('WS0607') // => true
uzhSemesters.isValid('HS15') // => true
uzhSemesters.isValid('HS05') // => false


Run test suite using npm test.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.