README
daet
Minimal immutable date class that supports relative time, calendar time, and plus/minus of different units.
Usage
Why use Daet over say?
- https://github.com/matthewmueller/date
- https://github.com/iamkun/dayjs
- https://github.com/hustcc/timeago.js
- https://github.com/catamphetamine/javascript-time-ago
- https://github.com/date-fns/date-fns
- https://github.com/taylorhakes/fecha
- https://github.com/wanasit/chrono
- https://github.com/moment/moment/
- https://github.com/moment/luxon
Beause Daet:
- is written in typescript, so you get great intellisense
- is immutable, so no funy business
- is absolutely tiny in size
- yet it has the most intuitive, rich, and efficient relative date interface out there
Install
- Install:
npm install --save daet
- Import:
import pkg from ('daet')
- Require:
const pkg = require('daet').default
<script type="module">
import pkg from '//cdn.skypack.dev/daet@^3.23.0'
</script>
<script type="module">
import pkg from '//unpkg.com/daet@^3.23.0'
</script>
<script type="module">
import pkg from '//dev.jspm.io/daet@3.23.0'
</script>
Editions
This package is published with the following editions:
daet/source/index.ts
is TypeScript source code with Import for modulesdaet/edition-browsers/index.js
is TypeScript compiled against ES2020 for web browsers with Import for modulesdaet
aliasesdaet/edition-es2019/index.js
daet/edition-es2019/index.js
is TypeScript compiled against ES2019 for Node.js 10 || 12 || 14 || 16 with Require for modulesdaet/edition-es2019-esm/index.js
is TypeScript compiled against ES2019 for Node.js 12 || 14 || 16 with Import for modules
History
Discover the release history by heading on over to the HISTORY.md
file.
Contribute
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
Backers
Maintainers
These amazing people are maintaining this project:
Sponsors
No sponsors yet! Will you be the first?
Contributors
These amazing people have contributed code to this project:
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
License
Unless stated otherwise all works are:
- Copyright © 2019+ Benjamin Lupton
and licensed under: