3.5.3 • Published 2 years ago
@naturalcycles/time-lib v3.5.3
@naturalcycles/time-lib
Date/time API, based on Dayjs.
Why
- Fixes TypeScript imports, regardless if esModuleInterop is used or not
Allows to use it as ESM package with tree-shaking (without breaking your TypeScript again)- Opinionated. Includes "needed" dayjs plugins by default.
- Allows to "just import dayjs" and not worry about:
- Loading plugins for all of your "entry points", such as
startServer.ts
,setupJest.ts
, at every cron job, etc. - That plugins are loaded BEFORE they are used (dependent on import order)
- That TypeScript types are not loaded with plugins
- Loading plugins for all of your "entry points", such as
- Extends dayjs with some useful functions (via Plugin interface)
- Has working
isoWeekday
plugin - Has
en-gb
locale by default, so, default firstDayOfWeek is Monday
API
TODO
3.5.3
2 years ago
3.5.2
2 years ago
3.5.1
4 years ago
3.5.0
4 years ago
3.4.0
4 years ago
3.4.1
4 years ago
3.3.0
4 years ago
3.2.1
4 years ago
3.2.0
5 years ago
3.1.0
5 years ago
3.0.5
5 years ago
3.0.4
5 years ago
2.1.1
5 years ago
3.0.3
5 years ago
3.0.2
5 years ago
3.0.1
5 years ago
3.0.0
5 years ago
2.1.0
5 years ago
2.0.0
5 years ago
1.11.1
5 years ago
1.11.0
5 years ago
1.10.0
5 years ago
1.9.0
5 years ago
1.8.0
5 years ago
1.7.0
5 years ago
1.6.7
6 years ago
1.6.6
6 years ago
1.6.5
6 years ago
1.6.4
6 years ago
1.6.3
6 years ago
1.6.2
6 years ago
1.6.1
6 years ago
1.6.0
6 years ago
1.5.0
6 years ago
1.4.3
6 years ago
1.4.2
6 years ago
1.4.1
6 years ago
1.4.0
6 years ago
1.3.0
6 years ago
1.2.1
6 years ago
1.2.0
6 years ago
1.1.0
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago