Get started with frozen-moment CDN

MIT licensed

Frozen-moment extends Moment.js, offering more date manipulation and formatting with immutability.

Tags:
  • time
  • date
  • moment
  • immutable
  • clone
  • freeze
  • frozen

Stable version

Copied!

How to start using frozen-moment CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with frozen-moment CDN - cdnhub.io</title>
  <script src="https://cdn.jsdelivr.net/npm/moment@2.29.1/moment.min.js"></script>
  <script src="https://cdn.cdnhub.io/frozen-moment/0.4.0/frozen-moment.min.js"></script>
</head>
<body>
  <script>
    const moment = require('moment'); // CommonJS syntax for Node.js
    const FrozenMoment = require('frozen-moment'); // CommonJS syntax for Frozen Moment

    // In the browser, use the global `moment` and `FrozenMoment` variables instead
    const frozenMoment = FrozenMoment;

    const now = moment();
    const frozenNow = frozenMoment(now);

    console.log('Moment:', now.toISOString());
    console.log('Frozen Moment:', frozenNow.toISOString());
  </script>
</body>
</html>
Copied!
Copied!
Copied!

All versions