npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

minitel

v1.1.1

Published

hi tech mintel

Downloads

7

Readme

minitel

low teck, node powered, it needed to be done

this module allow you to connect to a minitel, a terminal for an obsolete pre internet version of a country wide (France) intranet.

this it allow you to get key pressed from the keyboard and write to the terminal from node, or display content of a textfile.

this module is currently in an experimental stage and i need to discover and implement more features.

Install

npm install minitel --save

usage

  • hook up your minitel via a serial cable or an arduino like thing
  • instantiate a new minitel setting up the port accordingly.
  • power up the minitel
var Minitel = require('minitel');
var minitel = new Minitel({
  port:'/dev/tty.usbserial-A9M5DF7B', // your path will be different 
  speed:4800 // minitel defaults to 1200
});

// event fired when the module open the serial communication to the minitel 
// do NOT call any minitel method before it is fired 
minitel.on('ready', function () {
  minitel.readMsg('ascii/j5.txt');
});

API

wrChars

minitel.wrChars('yo');

writes char to the minitel

wrLn

minitel.wrLn('I'm writing a line here');

writes a full line to the minitel by concatenating the string and fill the remaining char to 40 char (full line) with space if the line is more than 40 lines the rest is not displayed

wrFile

minitel.wrFile('pathTo/file.txt')
clear the minitel output and read the selected file, displaying it line by line using wrLn func.

beep

minitel.beep()
make some NOIZE

clear

minitel.clear()
clear the minitel output

notes

  • currently line longer that 40 char will be spliced the rest goes to the sharks.
  • on the minitel keyboard Fct-P then 4 to set speed to 4800 bauds and set up the speed option to 4800 to have a better frame rate

resolution : teletext 40 * 24 char

change log

1.0.0 : basic version 1.1.0 : basic api, events for established serial connection

TODO

  • multiline support (create proper line for the wrLn func)
  • put asserts in proper tests
  • repl for interactive terminal
  • stream support
  • npm module
  • better doc