|
| 1 | +# @expressjs/codemod |
| 2 | + |
| 3 | +[![NPM Version][npm-version-image]][npm-url] |
| 4 | +[![NPM Install Size][npm-install-size-image]][npm-install-size-url] |
| 5 | +[![NPM Downloads][npm-downloads-image]][npm-downloads-url] |
| 6 | +[![OpenSSF Scorecard Badge][ossf-scorecard-badge]][ossf-scorecard-visualizer] |
| 7 | + |
| 8 | +Express.js provides Codemod transforms to help you upgrade your express server when a feature is deprecated or removed. |
| 9 | + |
| 10 | +Codemods are transformations that run on your codebase programmatically. This allows for a large amount of changes to be applied without having to manually go through every file. |
| 11 | + |
| 12 | +## Installation |
| 13 | + |
| 14 | +You don't need to install this package, run the following command: |
| 15 | + |
| 16 | +```sh |
| 17 | +npx @expressjs/codemod # or pnpx, bunx, etc. |
| 18 | +``` |
| 19 | + |
| 20 | +or install globally: |
| 21 | + |
| 22 | +```sh |
| 23 | +npm i -g @expressjs/codemod # or pnpm, bun, etc. |
| 24 | +``` |
| 25 | + |
| 26 | +## Usage |
| 27 | + |
| 28 | +Use `@expressjs/codemod -h` to explore available command-line options. |
| 29 | + |
| 30 | +<!-- GENERATED START --> |
| 31 | + |
| 32 | +``` |
| 33 | +Usage: @expressjs/codemod [codemod] [source] [options] |
| 34 | +
|
| 35 | +Options: |
| 36 | + -v, --version Output the current version of @expressjs/codemod. |
| 37 | + -d, --dry Dry run (no changes are made to files) |
| 38 | + -h, --help Display this help message. |
| 39 | +``` |
| 40 | + |
| 41 | +<!-- GENERATED END --> |
| 42 | + |
| 43 | +## Contributing |
| 44 | + |
| 45 | +The Express.js project welcomes all constructive contributions. Contributions take many forms, |
| 46 | +from code for bug fixes and enhancements, to additions and fixes to documentation, additional |
| 47 | +tests, triaging incoming pull requests and issues, and more! |
| 48 | + |
| 49 | +See the [Contributing Guide](https://github.com/expressjs/express/blob/master/Contributing.md) for more technical details on contributing. |
| 50 | + |
| 51 | +## License |
| 52 | + |
| 53 | +[MIT](LICENSE) |
| 54 | + |
| 55 | +[npm-downloads-image]: https://badgen.net/npm/dm/@expressjs/codemod |
| 56 | +[npm-downloads-url]: https://npmcharts.com/compare/@expressjs/codemod?minimal=true |
| 57 | +[npm-install-size-image]: https://badgen.net/packagephobia/install/@expressjs/codemod |
| 58 | +[npm-install-size-url]: https://packagephobia.com/result?p=@expressjs/codemod |
| 59 | +[npm-url]: https://npmjs.org/package/@expressjs/codemod |
| 60 | +[npm-version-image]: https://badgen.net/npm/v/@expressjs/codemod |
| 61 | +[ossf-scorecard-badge]: https://api.scorecard.dev/projects/github.com/expressjs/codemod/badge |
| 62 | +[ossf-scorecard-visualizer]: https://ossf.github.io/scorecard-visualizer/#/projects/github.com/expressjs/codemod |
0 commit comments