Skip to content

Glossary: Building APIs with Node.js

&& (shell operator)

Also written: &&

In a shell command, `&&` runs the second command only if the first one succeeded. `npm run check && npm test` runs the tests only when the type check passes.

Where the book teaches it

Related terms

npm scripts