package
NNTP server implementation.
npm install nntp-serverGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
NNTP server for readers.
Demo: news://dev.nodeca.com
This project is intended to build NNTP interface for internet forums and similars.
npm install nntp-server --saveUntil better docs/examples provided, we sugget
._* methods (via monkeypatching or subclassing). All data in/out described in each method header.const Server = require('nntp-server');
const nntp = new Server('nntp://localhost', { requireAuth: true });Address has "standard" format to define everything in one string:
nttp(s)://hostname:port/?option1=value1&option2=value2. For example:
nntp://example.com - listen on 119 portnntps://example.com - listen on 563 port, encryptedoptions:
key - tls secret key, optional.cert - tls cert, optional.pfx - tls key+cert together, optional.requireAuth (false) - set true if user should be authenticated.secure - "false" for nntp://, "true" for nntps://. Set true
if you use nntp:// with external SSL proxy and connection is secure.
If connection is not secure client will be requested to upgrade via
STARTTLS after AUTHINFO command.session - override default Session class if needed, optional.commands - your own configuration of supported commands, optional.
For example you may wish to drop AUTHINFO commands, been enabled by default.Bind server to given addres, format is protocol://host[:port]:
Returns Promise, resolved on success or fail.
Stop accepting new connections and wait until existing ones will be finished.
Bind server to given addres, format is protocol://host[:port]:
Returns Promise, resolved on success or fail.
{
'LIST OVERVIEW.FMT': ...,
'XOVER': ...,
...
}Object with command configurations. Use it to create your own and apply modifications. Don't forget to clone objects prior to modify. Keep default ones immutable.
This class contains client connection logic. Probably, you will not need to extend it.
Estimated unpacked size across 9 packages.
754.3 kB
Includes dependencies.
^2.0.1
2.1.0
^4.1.0
4.2.0
^8.1.0
13.1.0