any-to-luxon
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

any-to-luxon.dateTimeify() takes any value and tries to parse it into a luxon DateTime object.

If parsing fails, it returns the unchanged value. It is optimized for usage with data returnt by databases. First usecase was data in Google Cloud Datastore where every generation of client libraries messes up date objects in new and interesting ways.

any-to-luxon tries to follow modern (ES2020 etc.) practices and is Typescript and ESM friendly. No monkey-patching of built-in prototypes.

Package Sidebar

Install

npm i any-to-luxon

Weekly Downloads

20

Version

2.0.0

License

MIT

Unpacked Size

22 kB

Total Files

14

Last publish

Collaborators

  • mdornseif