https://github.com/fibo/minimal-time-helpers
minimal time helpers, implemented in TypeScript
https://github.com/fibo/minimal-time-helpers
Last synced: 7 days ago
JSON representation
minimal time helpers, implemented in TypeScript
- Host: GitHub
- URL: https://github.com/fibo/minimal-time-helpers
- Owner: fibo
- License: mit
- Created: 2023-08-18T22:38:22.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-12-17T07:36:34.000Z (7 months ago)
- Last Synced: 2026-04-27T00:23:34.629Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# minimal-time-helpers
> minimal time helpers, implemented in TypeScript
It provides few helpers to do date manipulation and conversion using native `Date` under the hood.
It is implemented in TypeScript and exports its own type definitions.
## Synopsis
```js
import { today, getDay } from "minimal-time-helpers";
const nextBaby = getDay(today()).plus(9).months;
```
## Pure ESM
This package is implemented with ECMAScript modules. CommonJS is not supported, nor bundle is provided.
If you need a bundle, you can do something like.
```sh
git clone git@github.com:fibo/minimal-time-helpers.git
cd minimal-time-helpers
esbuild --bundle src/index.ts --minify --outfile=time.js
```
It will produce a 5.6kb (minified, not gzipped) _time.js_ file.
## License
[MIT](https://fibo.github.io/mit-license)