![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.
volleyball
Advanced tools
const app = require('express')()
const volleyball = require('volleyball')
app.use(volleyball)
Volleyball is a minimal Connect-style middleware function which logs incoming requests and outgoing responses as separate events. It optionally supports the debug
module.
Logging HTTP cycles can be approached in several ways, each with its own drawbacks:
Volleyball takes the last approach, and assigns randomly-generated ids to label request-response pairs. It is designed for student project development, teaching beginning programmers how HTTP servers and asynchronicity work. It may also be useful as a low-configuration debug tool.
volleyball
The volleyball
module can be used directly as demonstrated in the first example. The module defaults to using process.stdout
for output.
volleyball.custom(config)
A customized logging middleware can be generated by calling custom
with a configuration object:
const logger = volleyball.custom({ debug: true }) // default namespace 'http'
// const logger = volleyball.custom({ debug: 'custom-namespace' })
// const logger = volleyball.custom({ debug: debugInstance })
app.use(logger)
The debug
property logs using the debug
module. It supports the following values:
value | result |
---|---|
true | uses a new debug instance with a default namespace of 'http' |
string | uses a new debug instance with a custom namespace |
function | uses any function, such as a pre-generated debug instance. Note that the function will be called with colorized strings. |
For more powerful, configurable, and compatible logging needs, check out:
FAQs
🏐 Tiny HTTP logger for Express showing asynchronous requests and responses
The npm package volleyball receives a total of 200 weekly downloads. As such, volleyball popularity was classified as not popular.
We found that volleyball 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.