0.0.4 • Published 5 years ago

entepe v0.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

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