A jshttp-based microframework with Opinions (TM). Collects and curates the following packages:
Full docs are available here.
📦 denotes a link to an external package that has been bundled with Knork.
require('@npm/knork') → createServer
require('@npm/knork/middleware/transaction') → TransactionMiddleware
require('@npm/knork/middleware/database') → DatabaseMiddleware
require('@npm/knork/middleware/monitor') → MonitorMiddleware
require('@npm/knork/middleware/metrics') → MetricsMiddleware
require('@npm/knork/middleware/logging') → LoggingMiddleware
require('@npm/knork/middleware/common') → CommonMiddleware
To develop locally, clone this repository, and run
npm install in a shell
in the repository directory. From there you can:
npm test: Run both the linter and the code tests.
npm run lint: Run just the linter.
npm run cov:test: Run the code tests with code coverage enabled.
npm run cov:html: Run the code tests and output a coverage directory. serve the directory at