A lightweight JavaScript date formatting and manipulation library providing functions for formatting, date arithmetic (add/subtract days, months, years), calculating differences between dates (days, hours, minutes), and comparing dates. Version 1.0.1 focuses on simplicity with a small API surface (format, customDates, inBetweenDates, compareDates). No external dependencies. Released occasionally; suitable for basic date operations without the overhead of Moment.js or date-fns.
npm install multi-dateNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage of format, customDates, inBetweenDates, and compareDates functions with ESM imports.
Always import 'format' (not 'formate') from 'multi-date'.
Pass Date objects or ISO strings (YYYY-MM-DD) to avoid parsing issues.
Parse the result with parseInt() if you need a numeric value.
Consider using date-fns or dayjs for more active support.
Run 'npm install multi-date' and ensure import/require path is correct.
Use 'import { format } from 'multi-date'' or 'const { format } = require('multi-date')'.Ensure you use the named export 'customDates'.
Always provide valid Date objects or ISO date strings.
No dependency data recorded yet.