entepe

Small experimental library that makes working with usenet servers possible.

Usage no npm install needed!

<script type="module">
  import entepe from 'https://cdn.skypack.dev/entepe';
</script>

README

Entepe

Experimental utility library that makes working with Usenet server possible in Node.JS environment. Made as a part of authors Bachelor Lunews project.

  • RFC 3977 compliant
  • Uses MIME decoding and encoding
  • Typed with TypeScript

TODO: 100% test coverage, Secure connect option

NPM JavaScript Style Guide

Install

npm install --save entepe

Usage

import NNTP, { interfaces } from 'entepe'

const options = {
    host: usenet.HOST.IP.address,
    port: usenet.HOST.port,
};

const connection: NNTP = new NNTP(options);

await connection.connect();
const remoteArticle: interfaces.IMessageInfo = await connection.getArticleHead('<globalId.usenet.org>');
await connection.quit();

License

MIT © NomiAdam