Client for communicating with servers throught the Network News Transfer Protocol (NNTP) protocol.
$ npm install node-nntp
Here is an example that fetches 100 articles from the php.doc of the news.php.net server:
var NNTP = require('nntp');
var nntp = new NNTP({host: 'news.php.net', port: 119, secure: false}),
group;
nntp.connect(function (error, response) {
if (error) {
throw error;
}
nntp.group('php.doc.nl', function (error, receivedGroup) {
nntp.overviewFormat(function (error, receivedFormat) {
nntp.overview(receivedGroup.first + '-' + (parseInt(receivedGroup.first, 10) + 100), receivedFormat, function (error, receivedMessages) {
console.log(receivedMessages);
});
});
});
});
MIT, see LICENSE