UNPKG

@zkochan/pnpm

Version:

A fast implementation of npm install

13 lines (11 loc) 264 B
'use strict'; module.exports = { decorator: function(middleware) { return function(config, spec) { return function(req, res, next) { req.superstatic = config || {}; return middleware(spec || {})(req, res, next); }; }; } };