@blucapital/request-handler
v1.1.0
Published
Manage basic to complex data request with sequelize
Downloads
438
Readme
Request Handler
Adapters to unificate API requests and responses under a generic handler. Support both CommonJS (CJS) and ES Modules (ESM).
Deployment
This package use conventional commits to automate the package release workflow. For more info check:
Installation
npm run installDevelopment
Create symlink on the local project.
cd requestHandler npm linkUse watch mode to build dist files based on the consumer project.
CommonJS
npm run watchCjsESM
npm run watchEsmlink-install the package in the consumer project.
npm link @blucapital/request-handlercall it in the consumer project, make sure its not installed in package.json or by a custom module provider.
CommonJS
const { ExpressAdapter, RequestHandler, SequelizeAdapter } = require('@blucapital/request-handler')ESM
import { ExpressAdapter, RequestHandler, SequelizeAdapter } from '@blucapital/request-handler'
