Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
billy-http-express
Advanced tools
A Billy service that creates an Express 4 HTTP server.
$ npm install billy-http-express
var Application = require('billy').Application;
var HttpService = require('billy-http-express');
var app = new Application();
app.service(HttpService);
app.config('http.port', 50123);
app.start();
The actual server is started after all services have been loaded, so
registering any middleware or setting up of express should happen after this
service via the http
dependencies.
function MyService(app, http)
{
http.use(cookieParser());
}
This can be done in a separate service or via the http.server
config.
New dependencies that you can use after adding this service:
tag | type | description | notes |
---|---|---|---|
http | express | The express application | Setup routes, middleware, etc with this object |
New dependencies that you can use after adding this service:
config | type | description | default value | notes |
---|---|---|---|---|
http.port | number | Port to listen on for HTTP connections | process.env.PORT , 8123 1 | |
http.secret | string | Server-side secret | 'supersecret' | Used for securing cookies. |
http.webroot | string | Path to directory of static files to serve | null | Optional. If not set, will not start the static server. |
http.server | function | Server startup module | null | Optional IoC-injected module to start after registering server. |
1 Will use the PORT
environment variable if available, e.g. on Heroku.
The source files are all decorated with JSDoc3-style
annotations that work great with the Tern code inference
system. Combined with the Node plugin (see this project's .tern-project
file), you can have intelligent autocomplete for methods in this library.
Testing is done with Tape and can be run
with the command npm test
.
Testing is done with Travis CI.
Copyright 2014 Brandon Valosek
billy-http-express is released under the MIT license.
FAQs
A Billy service that creates an Express 4 HTTP server
The npm package billy-http-express receives a total of 1 weekly downloads. As such, billy-http-express popularity was classified as not popular.
We found that billy-http-express 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.