A lightweight date formatting and parsing library for Node.js, version 1.0.1. It provides functions to format dates using custom patterns, parse formatted strings back to Date objects, compute relative time (e.g., '4 years ago'), and calculate differences between dates. It supports localized output via language configuration. The API is minimal and synchronous, distinguishing it from heavier libraries like Moment.js. The project appears to be in maintenance mode with no recent updates.
npm install dateableNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates core functions: format, parse, relative time, and difference between dates.
Use UTC-oriented methods or ensure consistent time zone handling in your application.
Consider switching to maintained alternatives like date-fns or dayjs.
Wrap literal text in quotes: dateable(date, "'Today is' dddd")
Set language before formatting calls, or use separate instances if available (not supported).
Use `import dateable from 'dateable'` (or `const dateable = require('dateable')` in CommonJS).Call `dateable.when(date)` after default import.
Install package: `npm install dateable` and import correctly.
No dependency data recorded yet.