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