// TypeScript, ESM
import {cdate} from "cdate";
import {cdateMoment} from "cdate-moment";
// CommonJS
const {cdate} = require("cdate");
const {cdateMoment} = require("cdate-moment");
const moment = cdate(0).plugin(cdateMoment).momentFn();
moment([2022, 0, 1]).format("YYYY-MM-DD");
moment("2022-01-01").endOf("year").format("YYYY-MM-DD");
cdate-moment
is freely distributable under the terms of the MIT license.