
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
requirejs-common-wrap-middleware
Advanced tools
Easiest way to share your modules between server and client side
Sample config
var config = {
baseUrl: '/js/',
basePath: 'static/js/',
modules: {
'your/module/url': {
path: 'path/to/module'
},
// example with dependencies mapping
'your/another/module/url': {
path: 'path/to/another/module',
dependenciesMap: {
'original/dependency/path': 'new/dependency/url'
}
}
}
};
As a middleware
var app = express.createServer();
app.use(require('requirejs-common-wrap-middleware').wrapper(config));
for production at a build script:
require('requirejs-common-wrap-middleware').builder(config);
You can use the same config for wrapper and builder, but
wrapper does not use basePath option, in opposite, builder does not use
baseUrl option, but use basePath.
FAQs
requirejs common wrap middleware
We found that requirejs-common-wrap-middleware demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.