TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How to make input validation in Express.js app simple and clean

1 pointsby banna2over 6 years ago

1 comment

dvdhntover 6 years ago
I&#x27;m not a fan of the package used here, the syntax of chaining functions to validate a single input within your routing file, something that should likely be fairly static.<p>At my old company, we used `whitelister`. We created it in-house then open sourced it [1]. There is JSON schema, and we could have moved on to that, but it was too much for what we needed.<p>1. <a href="https:&#x2F;&#x2F;spireteam.github.io&#x2F;whitelister&#x2F;" rel="nofollow">https:&#x2F;&#x2F;spireteam.github.io&#x2F;whitelister&#x2F;</a>
评论 #18045819 未加载