BTC $64,746.00 −0.89% ETH $1,812.68 −1.00% USDT $0.9992 −0.01% BNB $592.95 −0.15% USDC $0.9996 −0.01% XRP $0.9713 +1.10% SOL $73.90 +2.75% TRX $0.3076 +0.72% FIGR_HELOC $1.01 −3.72% STETH $1,796.44 −1.86% HYPE $69.22 −0.95% ZEC $949.32 +4.28% XMR $506.21 +1.15% DOGE $0.0596 +0.23% BTC $64,746.00 −0.89% ETH $1,812.68 −1.00% USDT $0.9992 −0.01% BNB $592.95 −0.15% USDC $0.9996 −0.01% XRP $0.9713 +1.10% SOL $73.90 +2.75% TRX $0.3076 +0.72% FIGR_HELOC $1.01 −3.72% STETH $1,796.44 −1.86% HYPE $69.22 −0.95% ZEC $949.32 +4.28% XMR $506.21 +1.15% DOGE $0.0596 +0.23%
CDN LINKS · JAVASCRIPT LIBRARIES

date-fns CDN

Modern date helper functions (the CDN build exposes window.dateFns). Latest version 4.4.0, with SRI hashes for safe loading.

date-fns 4.4.0

Modern date helper functions (the CDN build exposes window.dateFns).

<script src="https://cdn.jsdelivr.net/npm/[email protected]/cdn.min.js" integrity="sha256-wc0eDthpi6RABdPb6BY/WHwm/X3JNhulonn01KvDDQM=" crossorigin="anonymous"></script>

Licence: MIT · Official site

All files and hashes

CDNVersionAddressSRI
jsDelivr4.4.0https://cdn.jsdelivr.net/npm/[email protected]/cdn.min.jssha256-wc0eDthpi6RABdPb6BY/WHwm/X3JNhulonn01KvDDQM=
unpkg4.4.0https://unpkg.com/[email protected]/cdn.min.jssha256-wc0eDthpi6RABdPb6BY/WHwm/X3JNhulonn01KvDDQM=

How to add date-fns to your page

Copy the tags above. Put stylesheet (<link>) tags inside <head>, and script tags just before </body> so the page shows first.

Building with a bundler (Vite, webpack)? Install it instead: npm install date-fns

Licence: MIT. Read the full terms on the official site before commercial use.

Use a CDN safely

  • Keep the SRI hash. The integrity attribute is a fingerprint of the file. If anyone changes the file on the CDN, the browser refuses to run it.
  • Pin the version. Every link here has an exact version (like @3.7.1). Links with @latest or no version change under your feet and cannot use SRI.
  • Use well-known CDNs only. jsDelivr, unpkg and cdnjs serve files straight from npm and the projects. In June 2024 the domain of the "polyfill.io" service was sold, and the new owner served harmful code to more than 100,000 websites that still loaded it. Sites with SRI or a trusted CDN were safe.
  • Keep crossorigin="anonymous" next to integrity; browsers need it to check files from another domain.
  • Check the licence. Most libraries here are free for any use (MIT, BSD, Apache). A few are free only for personal, non-profit or open-source use; their cards carry an orange licence note so you can decide.
  • For important sites, host the files yourself (or install them with npm). Your site then does not depend on any outside server.

More javascript libraries

jQuery Alpine.js htmx Lodash Axios Day.js Moment.js DOMPurify Marked Fuse.js crypto-js qrcode-generator SortableJS jQuery UI Popper Luxon

Trustpilot

What our customers say

4.8 / 5Trustpilot rating
FREE BITCOIN TOOLS

Stuck Bitcoin transaction?

Paste your TXID, see where it stands, and give it a free push. No signup, no wallet access.

Try the free accelerator
  • Free
  • No signup
  • Live status