Shelf dates library. Wrapper on dayjs with more of date-fns API
$ yarn add @shelf/datetime
import {setGlobalLocale, formatDistance} from '@shelf/datetime';
// OR
import setGlobalLocale from '@shelf/datetime/lib/setGlobaleLocale';
import formatDistance from '@shelf/datetime/lib/formatDistance';
setGlobalLocale('uk'); // set non-default locale (default 'en')
formatDistance(new Date(1986, 3, 4, 10, 32, 0), new Date(1986, 3, 4, 10, 32, 20));
setGlobalLocale('en');
formatDistance(new Date(1986, 3, 4, 10, 32, 0), new Date(1986, 3, 4, 10, 32, 20)); // a few seconds ago
$ git checkout master
$ yarn version
$ yarn publish
$ git push origin master --tags
MIT © Shelf