Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
fluid-express
Advanced tools
Fluid components to model an express server and associated router modules.
This package provides a series of Fluid components that encapsulate the main features of Express. Express is a node-based server framework written in Javascript.
In addition to Express itself, this package provides:
This module allows you to wire together fluid components to serve up APIs and static content. Simple server-side use cases can be implemented purely by configuring the components provided here.
In the long term, the two modules will likely evolve closer to each other, but in the short term, there are few key differences.
Kettle is a server side framework written entirely as a series of Fluid components, and used extensively within the Fluid Community. Kettle better serves use cases that don't involve a markup-based UI, and provides deeper options for replacing the internals of the server. It also provides support for WebSockets.
The fluid.express
module is a wrapper for Express, and only for Express. It does not do anything that Express cannot,
such as communicating using WebSockets. However, as it is based on the idiom of a newer version of express, it provides
the router concept introduced in Express 4.x, which Kettle does not have. It is better suited for use
cases where support for complex routing and rendering of complex markup-based interfaces (as provided via
fluid-handlebars) is required.
To use this module, you will need to instantiate an instance of fluid.express
itself (or something that extends it),
and wire in at least one fluid.express.middleware
module. The most basic example (serving static content) should look
something like:
fluid.defaults("my.namespaced.grade", {
gradeNames: ["fluid.express"],
port: 8080,
components: {
staticRouter: {
type: "fluid.express.router.static",
options: {
path: "/",
content: "%fluid-express/tests/html"
}
}
}
});
See the documentation for the fluid.express
grade for a full list of configuration options. This
example configures a "static" router that is designed to serve up filesystem content (see the middleware
documentation for more details).
For more information about the grades included in this package and how to use them together, take a look at the documentation in this package.
FAQs
Fluid components to model an express server and associated router modules.
The npm package fluid-express receives a total of 12 weekly downloads. As such, fluid-express popularity was classified as not popular.
We found that fluid-express demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 10 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.