@zkochan/pnpm
Version:
A fast implementation of npm install
27 lines (24 loc) • 564 B
JavaScript
/**
* 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
*/
;
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;
};
});