{"id":15658690,"url":"https://github.com/jonschlinkert/load-plugins","last_synced_at":"2025-09-13T21:10:52.378Z","repository":{"id":19978337,"uuid":"23245436","full_name":"jonschlinkert/load-plugins","owner":"jonschlinkert","description":"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.","archived":false,"fork":false,"pushed_at":"2019-07-11T08:38:31.000Z","size":33,"stargazers_count":22,"open_issues_count":2,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-05T04:04:05.158Z","etag":null,"topics":["assemble","build","config","glob","grunt","gulp","plugins"],"latest_commit_sha":null,"homepage":"https://github.com/jonschlinkert","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonschlinkert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-23T02:02:30.000Z","updated_at":"2024-02-10T16:57:52.000Z","dependencies_parsed_at":"2022-08-31T03:40:37.247Z","dependency_job_id":null,"html_url":"https://github.com/jonschlinkert/load-plugins","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fload-plugins","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fload-plugins/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fload-plugins/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fload-plugins/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonschlinkert","download_url":"https://codeload.github.com/jonschlinkert/load-plugins/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252436291,"owners_count":21747470,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["assemble","build","config","glob","grunt","gulp","plugins"],"created_at":"2024-10-03T13:13:29.948Z","updated_at":"2025-05-05T04:04:09.323Z","avatar_url":"https://github.com/jonschlinkert.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# load-plugins [![NPM version](https://badge.fury.io/js/load-plugins.svg)](http://badge.fury.io/js/load-plugins)  [![Build Status](https://travis-ci.org/jonschlinkert/load-plugins.svg)](https://travis-ci.org/jonschlinkert/load-plugins)\n\n\u003e Load plugins for gulp, grunt, assemble, verb any node.js app that needs to load plugins from node_modules or local folders.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i load-plugins --save\n```\n\n## Usage\n\n### with gulp\n\n```js\nvar plugin = require('load-plugins')('gulp-*');\n\ngulp.task('default', function () {\n  gulp.src('test/*.js')\n    .pipe(plugin.jshint());\n    .pipe(plugin.mocha());\n});\n```\n\n### with assemble\n\n```js\nvar plugin = require('load-plugins')('assemble-*');\n\nassemble.task('default', function () {\n  assemble.src('templates/*.hbs')\n    .pipe(plugin.paginate());\n    .pipe(plugin.collections());\n    .pipe(assemble.dest('dist/'));\n});\n```\n\n### with verb\n\n```js\nvar plugin = require('load-plugins')('verb-*');\n\nverb.task('default', function () {\n  verb.src('docs/*.md')\n    .pipe(plugin.toc());\n    .pipe(plugin.reflinks());\n    .pipe(verb.dest('./'));\n});\n```\n\n## Options\n\nSee [resolve-dep](https://github.com/jonschlinkert/resolve-dep) for additional options.\n\n### options.require\n\nPass a custom function for `require`ing files.\n\n```js\nplugins('gulp-*', {\n  require: function(filepath) {\n    // do stuff to filepath\n  }\n});\n```\n\n### options.camelize\n\nMake plugin names camelcased. By default this is `true`.\n\n### options.rename\n\nPass a rename function to change how plugins are named.\n\n```js\nplugins('my-plugins-*', {\n  rename: function (filepath) {\n    return path.basename(filepath);\n  }\n});\n```\n\n### options.strip\n\nOmit strings from plugin names. This is a complement to the `.rename()` option, it's easiest to understand by way of example:\n\n```js\nplugins('gulp-*', {strip: 'gulp'});\n```\n\nReturns `{mocha: [Function]}` instead of `{'gulp-mocha': [Function]}`, and so on.\n\nYou may also pass an array of strings to strip, or use **braces**, e.g.:\n\n```js\n// note that the `strip` option doesn't work with full glob patterns, just braces\nplugins('{foo,bar}-*', {strip: ['foo', 'bar']});\n```\n\n## Related\n\n* [load-templates](https://github.com/jonschlinkert/load-templates): Load templates.\n* [plugins](https://github.com/jonschlinkert/plugins): Run a string through a plugin stack.\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d \u0026\u0026 npm test\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/load-plugins/issues/new)\n\n## Author\n\n**Jon Schlinkert**\n\n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2014-2015 [Jon Schlinkert](https://github.com/jonschlinkert)\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on July 05, 2015._","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonschlinkert%2Fload-plugins","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonschlinkert%2Fload-plugins","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonschlinkert%2Fload-plugins/lists"}