Eexpressjs

expressjs/camelcase-sendfile

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

transformationmigrationexpresssendFilefiles
Public
28 executions
Run locally
npx codemod @expressjs/camelcase-sendfile
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.