load-plugins NPM version Build Status

Load plugins for gulp, grunt, assemble, verb any node.js app that needs to load plugins from node_modules or local folders.


Install with npm

$ npm i load-plugins --save


with gulp

var plugin = require('load-plugins')('gulp-*');

gulp.task('default', function () {

with assemble

var plugin = require('load-plugins')('assemble-*');

assemble.task('default', function () {

with verb

var plugin = require('load-plugins')('verb-*');

verb.task('default', function () {


See resolve-dep for additional options.


Pass a custom function for requireing files.

plugins('gulp-*', {
  require: function(filepath) {
    // do stuff to filepath


Make plugin names camelcased. By default this is true.


Pass a rename function to change how plugins are named.

plugins('my-plugins-*', {
  rename: function (filepath) {
    return path.basename(filepath);


Omit strings from plugin names. This is a complement to the .rename() option, it's easiest to understand by way of example:

plugins('gulp-*', {strip: 'gulp'});

Returns {mocha: [Function]} instead of {'gulp-mocha': [Function]}, and so on.

You may also pass an array of strings to strip, or use braces, e.g.:

// note that the `strip` option doesn't work with full glob patterns, just braces
plugins('{foo,bar}-*', {strip: ['foo', 'bar']});

Running tests

Install dev dependencies:

$ npm i -d && npm test


Pull requests and stars are always welcome. For bugs and feature requests, please create an issue


Jon Schlinkert


Copyright © 2014-2015 Jon Schlinkert Released under the MIT license.

This file was generated by verb-cli on July 05, 2015.

Load Plugins

Thin wrapper around resolve-dep for loading plugins from node_modules or local directories. Like load-gulp-plugins, match dep, etc, but works for gulp, grunt, assemble, verb or anything other task runner or build system that uses plugins.

Load Plugins Info

⭐ Stars 20
🔗 Homepage github.com
🔗 Source Code github.com
🕒 Last Update 4 years ago
🕒 Created 7 years ago
🐞 Open Issues 2
➗ Star-Issue Ratio 10
😎 Author jonschlinkert