Fullstack part9 |

In every codebase where I need an API, I always end up writing some version of this function.
It lets you automatically handle 400 validation using Zod, and automatically infers the types based on the schema passed in. https://t.co/Wb17AI8ExL
Important sidenote... See more
Sometimes when you're debugging, you may want to find out what headers have been set in the HTTP request. One way of accomplishing this is through the get method of the request object, that can be used for getting the value of a single header. The request object also has the headers property, that contains all of the headers of
Fullstack part3 | Node.js and Express
These days, code that runs in the browser uses ES6 modules. Modules are defined with an export and included in the current file with an import.
Node.js uses CommonJS modules. The reason for this is that the Node ecosystem needed modules long before JavaScript supported them in the language specification. Currently, Node also supports the use of ES6... See more
Node.js uses CommonJS modules. The reason for this is that the Node ecosystem needed modules long before JavaScript supported them in the language specification. Currently, Node also supports the use of ES6... See more