Newsworthy Presidential Mistakes

npm

Need private packages and team management tools?Check out npm Orgs. »

nyanstream

0.1.6 • Public • Published

Nyancat stream for node.js

npm install nyanstream

stdout

var nyanStream = require("nyanstream");
var cat = nyanStream();
cat.pipe(process.stdout);
cat.nyan();

tcp

var nyanStream = require("nyanstream");
var net = require("net");
net.createServer(function(socket) {
  nyanStream().nyan().pipe(socket);
}).listen(1337);
telnet localhost 1337

http

var nyanStream = require("nyanstream");
var http = require("http");
http.createServer(function(req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  nyanStream().nyan().pipe(res);
}).listen(8080);
wget -q -O - http://localhost:8080

Thanks to https://github.com/klange/nyancat

Keywords

none

install

npm i nyanstream

Downloadsweekly downloads

7

version

0.1.6

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability