![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
connect-bower
Advanced tools
Middleware for serving content from bower packages.
Scratching my own itch really. We use bower for packaging all of our front-end resources, and we wanted a simple and consistent way to access these packages from a browser.
Simple. When connect-bower
get's hit with a correctly formatted URL it will download (if needed) the correct package (versioned) and then serve any file from within this package.
The absolutely simplest way to use the middleware looks like this:
require("connect")()
.use(require("connect-bower")())
.listen(8080);
The general match rule for path is /:package/:version/:path
where
:package
is a bower package name:version
is a semver version or range or a straight up SHA1 commit:path
is a path to any file in the package/troopjs/2.1.0/package.json
Serve the file package.json
from the package troopjs
version 2.1.0
/troopjs/*/package.json
Serve the file package.json
from the package troopjs
of the latest version available
/troopjs/~2/package.json
Serve the file package.json
fro the package troopjs
of the latest version matching ~2
/troopjs/develop/package.json
Serve the file package.json
from the package troopjs
in the develop
branch
/troopjs/7703e4912c46abd81f32aad9886f19fc3c1a1f2c/package.json
Serve the file package.json
from the package troopjs
as in commit 7703e4912c46abd81f32aad9886f19fc3c1a1f2c
FAQs
Bower middleware
The npm package connect-bower receives a total of 1 weekly downloads. As such, connect-bower popularity was classified as not popular.
We found that connect-bower 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.