minimal-time-helpers
v0.1.0
Published
minimal time helpers
Downloads
6
Readme
minimal-time-helpers
minimal time helpers
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
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.
git clone [email protected]: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.