0.1.6 • Published 11 years ago

nyanstream v0.1.6

Weekly downloads
2
License
-
Repository
github
Last release
11 years ago

Nyancat stream for node.js

npm install nyanstream

stdout

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

tcp

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

nc localhost 1337

http

node
> 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(1337);

curl http://localhost:1337

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

0.1.6

11 years ago

0.1.5

11 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago