UNPKG

@zkochan/pnpm

Version:

A fast implementation of npm install

27 lines (24 loc) 564 B
/** * Copyright 2015 Google Inc. All Rights Reserved. * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE file or at * https://github.com/firebase/superstatic/blob/master/LICENSE */ 'use strict'; var _ = require('lodash'); [ 'protect', 'redirects', 'headers', 'cleanUrls', 'env', 'files', 'rewrites', 'missing' ].forEach(function(name) { exports[name] = function(spec, config) { var mware = require('./' + _.kebabCase(name))(spec, config); mware._name = name; return mware; }; });