Socket
Socket
Sign inDemoInstall

any-to-luxon

Package Overview
Dependencies
2
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    any-to-luxon

Converts various representations usually found in databases to luxon DateTime objects.


Version published
Weekly downloads
62
increased by19.23%
Maintainers
1
Install size
4.26 MB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 14 Apr 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc