Categories
Node.js Quick Tips Quick Tips

Try out command line tools with npx

< 1 min read

It’s common to add tools like Prettier or Webpack into a project, but you might want to try them out first before you fully integrate and configure them.

npx is a handy command line tool that comes bundled with npm, and you can use it to try out command line tools without needing to add them as a project dependency.

For example, if you want to give Prettier a spin to see which files in your project it would fix the formatting for, you can run:

npx prettier --check .

It’s a great way to quickly try things out!

Leave a Reply

Your email address will not be published. Required fields are marked *