
Security News
n8n Tops 2025 JavaScript Rising Stars as Workflow Platforms Gain Momentum
n8n led JavaScript Rising Stars 2025 by a wide margin, with workflow platforms seeing the largest growth across categories.
assemble-plugin-wrapper
Advanced tools
Easily wrap plugins to use with apps, collections, and/or views.
Install with npm
$ npm i assemble-plugin-wrapper --save
var wrapper = require('assemble-plugin-wrapper');
Wrap a plugin function to easily use it with the specified type (e.g. app, collection, view, or any)
Params
pluginType {String}: The type specifying where this plugin should be use.pluginType.app {String}: Only use on the apppluginType.collection {String}: Only use on view collections.pluginType.view {String}: Only use on view instances.pluginType.any {String}: Use with any of the plugin types.fn {Function}: Function to use as the plugin. This will be executed in the context of the specified plugin type object (e.g. app, collection, view)returns {Function}: Plugin function that may be passed to .use methods on app, collection, and/or view instancesExample
app.use(wrapper('any', function () {
this.foo = function (str) {
return 'foo-' + str;
};
}));
app.foo('bar');
//=> 'foo-bar'
Install dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Brian Woodward
Copyright © 2015 Brian Woodward Released under the MIT license.
This file was generated by verb-cli on September 13, 2015.
FAQs
Makes it easy for plugin authors to generalize assemble plugins. Assemble has three types of plugins: app, collection and view. This makes it easy to specify one or more of those types to use for your plugin.
We found that assemble-plugin-wrapper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
n8n led JavaScript Rising Stars 2025 by a wide margin, with workflow platforms seeing the largest growth across categories.

Security News
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.

Security News
crates.io adds a Security tab backed by RustSec advisories and narrows trusted publishing paths to reduce common CI publishing risks.