Skip to content

A collection of codemods I wrote to automate various things

License

Notifications You must be signed in to change notification settings

43081j/codemods

Repository files navigation

codemods

This is a collection of codemods I have written to help me automate certain tasks in the past.

Most use ast-grep but some may use jscodeshift or other tools.

Usage of ast-grep codemods

sg scan -r path-to-codemod.yml path-to-source-code

List of codemods

Name Description
add-extensions-to-imports Add .js to extensionless imports
chai-expect-to-node-assert Convert chai expect assertions to node:assert assertions
chai-should-to-expect Convert should assertions to expect assertions
sinon-to-tinyspy Convert sinon spies to tinyspy spies

About

A collection of codemods I wrote to automate various things

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published