
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
node-nailgun-server
Advanced tools
A Node.js module for running Nailgun servers.
This package enable you to run Nailgun servers through your Node.js applications.
Note that this only provides support for running Nailgun servers. If you are need of a Nailgun client for Node.js, node-nailgun-client is recommended.
npm install node-nailgun-server
By the default the server will listen to all interfaces on port 2113.
const nailgun = require('node-nailgun-server');
const server = nailgun.createServer();
server.out.pipe(process.stdout);
In the following example node-nailgun-client is used to communicate with the server:
const nailgun = require('node-nailgun-server');
const client = require('node-nailgun-client');
const options = {
address: 'localhost',
port: 0, // 0 lets the server choose a random port
}
nailgun.createServer(options, function(port) {
const nail = client.exec('ng-stats', { port: port })
nail.stdout.pipe(process.stdout);
});
The server object returned when creating a server provides a output stream and also a function for shutting the server down:
server.shutdown();
Servers are also shutdown automatically when the Node.js process exits.
Apache License 2.0
FAQs
A Node.js module for running Nailgun servers
The npm package node-nailgun-server receives a total of 1,776 weekly downloads. As such, node-nailgun-server popularity was classified as popular.
We found that node-nailgun-server 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.