This is an ongoing project based on data structures. We will be presenting and explaining the code of each basic data structure with the help of a visualizer.
Chain Express middlewares with Vercel Serverless Functions.
Installation
yarn add @amaurym/now-middleware
Usage
The package exposes one chain function.
import{chain}from'@amaurym/now-middleware';import{NowRequest,NowResponse}from'@vercel/node';// Import a couple of Express middlewaresimportcorsfrom'cors';// Enable cross-origin resource sharing (CORS) with various optionsimportmorganfrom'morgan';// HTTP request loggerasyncfunctionhandler(_req: NowRequest,res: NowResponse): Promise<void>{// This is your normal ZEIT Now function.res.send('Everything OK.');}// Chain some middlewares before calling the ZEIT Now serverless functionexportdefaultchain(cors(),morgan('common'))(handler);
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].