A collection of codemods for migrating from moment.js to day.js
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
node ./bin/cli.js path/of/files/ or/some**/*glob.js
- clone the repo
- change into the repo directory
yarn
yarn test
yarn update-docs