I would love feedback on my TypeScript skills and NPM Module.

DeChamp - Jun 24 '19 - - Dev Community

I wrote a post about my first public module plugin, but since then I've re-written most of it using TypeScript. It could definitely use some input as I'm only on week 3 of TypeScript.

The NPM module I built is for express routing. It will let you create your routes via a config file, as well as setup your middleware, across all routes or per route.

NPM module - @dechamp/express-auto-route

It comes packaged with 2 optional middleware for both request and response.

The middleware will enable options in the config to allow you to point to Json Schema, which will validate your input to ensure it's qualified.

It can be configured to work against query, body and params (express path :yourVar).

I plan on adding more TypeScript typings throughout the code, eventually doing away with "noImplicitAny": false.

Please feel free to import it to your project, play with it and let me know if it was easy to implement. How was the README.md file? Did it all make sense?

I understand express is already very easy to use and this package won't have any value to some people, and that is ok. That is not what I'm asking to hear. I'm asking for tips on improve my TypeScript skills, how the package could be improved and if it made your life easier.

NPM module - @dechamp/express-auto-route

Thank you so much!

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player