Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@sleeyax/newsie

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sleeyax/newsie

An NNTP Client Library targeting NodeJS. It supports the authentication, TLS encryption, base NNTP commands, and more.

latest
Source
npmnpm
Version
1.3.0
Version published
Maintainers
1
Created
Source

Newsie

pipeline status

An NNTP Client Library targeting NodeJS. It supports the authentication, TLS encryption, base NNTP commands, and more.

I started this project after trying several NNTP clients and libraries and being disappointed in functionality, test coverage, and documentation. This library has extensive tests pulled directly from the implemented RFC documents themselves, and several examples.

Usage

Be sure to use the latest LTS (14.15.0+) of NodeJS. Earlier versions of NodeJS are not supported.

Install the library with npm:

npm install newsie

Use the library to talk to an NNTP server:

const Client = require('newsie').default
const client = new Client({
  host: 'news.easynews.com',
  port: 110
})

client.connect()
  .then(response => {
    console.log(response)
    return client.capabilities()
  })
  .then(response => {
    console.log(response)
    return client.quit()
  })
  .then(response => {
    console.log(response)
  })

See the examples folder for more examples.

Development Notes

In IntelliJ, to debug files in the src directory, set Node Parameters to -r ts-node/register.

The semantic-release tool requires the GITLAB_TOKEN and NPM_TOKEN. It is configured with the @semantic-release/gitlab-config package.

Licensing

All code is licensed under the GNU AFFERO GENERAL PUBLIC LICENSE Version 3.

Keywords

news

FAQs

Package last updated on 15 Mar 2025

Did you know?

Socket

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.

Install

Related posts