0.1.6 • Published 12 years ago

nyanstream v0.1.6

Weekly downloads
2
License
-
Repository
github
Last release
12 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

12 years ago

0.1.5

12 years ago

0.1.4

12 years ago

0.1.3

12 years ago

0.1.2

12 years ago

0.1.1

12 years ago

0.1.0

12 years ago