It understands the following time constructs and abbreviations.
milliseconds: milliseconds, millisecond, ms
seconds:seconds , second , secs , sec , s
minutes: minutes , minute , mins , min , m
hours: hours , hour , hrs , hr , h
days: days , day , d
weeks: weeks , week , wks , wk , w
+ / - and order of operations
+ and - operators perform addition and subtraction as expected.
Concatenating time measurements together (with or without whitespace) will perform addition.
'1h3s' == '1h + 3s' == '1 hour 3 seconds'
Concatenation has higher precedence than the + or - operators, so:
'1 week - 2 days 6 hours' == '1 week - (2 days + 6 hours)'
(parenthesis are not currently supported)
releasing
ensure your git working directory is clean (git status).
ensure you are running npm 2.13 or later, or 3.1 or later (npm --version, npm i npm@latest).
ensure you have cut-release installed (npm i -g cut-release).