moment-dayjs-codemod
v0.4.0
Published
![Build and Deploy](https://github.com/rajasegar/moment-dayjs-codemod/workflows/CI/badge.svg) [![npm version](http://img.shields.io/npm/v/moment-dayjs-codemod.svg?style=flat)](https://npmjs.org/package/moment-dayjs-codemod "View this project on npm") [![C
Downloads
31
Maintainers
Readme
moment-dayjs-codemod
A collection of codemods for migrating from moment.js to day.js
Usage
To run the codemod , you would run the following:
npx moment-dayjs-codemod path/of/files/ or/some**/*glob.js
# or
yarn global add moment-dayjs-codemod
moment-dayjs-codemod path/of/files/ or/some**/*glob.js
Local Usage
node ./bin/cli.js path/of/files/ or/some**/*glob.js
Transforms
Contributing
Installation
- clone the repo
- change into the repo directory
yarn
Running tests
yarn test
Update Documentation
yarn update-docs
References
- AST Explorer
- https://ottonova.tech/why-we-switched-from-moment-js-to-day-js/
- https://medium.datadriveninvestor.com/https-medium-com-sabesan96-why-you-should-choose-day-js-instead-of-moment-js-9cf7bb274bbd