Skip to content
#

Express

express logo

Express.js is a simple Node.js framework for single, multi-page, and hybrid web applications.

Here are 42,233 public repositories matching this topic...

CuriousMagpie
CuriousMagpie commented Jan 19, 2022

General Info

  • UUID: ccd674f1-a67e-4de4-a66d-1267006b075b
  • Browser: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36
  • OS: MacOS

Description

from user:

I noticed that the "let's go!" button on the intro messages from Justin behave a little different than all other buttons. When you hover over the button, the text co

express-validator
NeverwinterMoon
NeverwinterMoon commented Oct 12, 2021

I managed to find a way to fail-fast the validation chain with bail, but what about failing fast the middleware list?

Say, I have

.post(
  '/somewhere',
  body('name').exists(),
  body('phoneNumber').exists(),
  handleStuff
)

If the name validation fails, I don't care to check phoneNumber anymore... Wasn't able to find a way to fail fast in this case. In the case

Created by TJ Holowaychuk

Released November 16, 2010

Organization
expressjs
Website
expressjs.com
Wikipedia
Wikipedia