Eexpressjs

expressjs/camelcase-sendfile

Migrates usage of the legacy API `res.sendfile(file)` to `res.sendFile(file)`

transformationmigrationexpresssendFilefiles
Public
0 executions
2 stars
How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

Migrate legacy res.sendfile(file) to res.sendFile(file)

Migrates usage of the legacy APIs res.sendfile(file) to res.sendFile(file).

Example

Migrating res.sendfile(file)

The migration involves replacing instances of res.sendfile(file) with res.sendFile(file).

diff

References

Ready to contribute?

Build your own codemod and share it with the community.