@cloud-shop/utils

Includes the following express middleware:

Usage no npm install needed!

<script type="module">
  import cloudShopUtils from 'https://cdn.skypack.dev/@cloud-shop/utils';
</script>

README

Cloud Shop Utilities Library

Includes the following express middleware:

  • current user
  • error handler
  • require authentication
  • validate request

And includes the following error classes:

  • BadRequestError
  • CustomError
  • DatabaseError
  • NotAuthorizedError
  • NotFoundError
  • RequestValidationError