Skip to content

kawanet/cdate-moment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cdate-moment - moment.js compat plugin for cdate

Node.js CI npm version

SYNOPSIS

// 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");

LICENSE

  • cdate-moment is freely distributable under the terms of the MIT license.

LINKS

About

moment.js compat plugin for cdate

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors