0.1.0 • Published 9 months ago

minimal-time-helpers v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

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 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

0.1.0

9 months ago