restify-de-next-ify
v1.0.0
Published
Wrap legacy `next`-Based Restify handler in a v9+ async wrapper
Downloads
2
Readme
restify-de-next-ify
Wrap legacy
next
-Based Restify handlers in a v9+ async wrapper
Tiny wrapper to help with the Restify 8to9 transition, wrapping a classic v8 and below handler in a v9 / async handler.
Usage
import { RestifyDeNextify } from "restify-de-next-ify";
import { v8Handler } from "my-app/handler";
const v9Middleware = RestifyDeNextify(v8Handler);