@honkjs/silence
v3.0.0
Published
A silent/example middleware for honk.
Downloads
1
Readme
honkjs/silence
Because you hate honking.
Getting Started
npm install @honkjs/silence
import Honk from '@honkjs/honk';
import silence from '@honkjs/silence';
const honk = new Honk().use(silence()).honk;
honk(); // output: Nothing
Concepts
This repo can be used as quick example of how to build a 'catch all' middleware. Chances are in a production app you don't want missed dispatches to randomly output "HONK 🚚 HONK" to the console, so you should create a new 'default' middleware that's first in the pipeline to catch these with whatever default behavior you want.