instant web server (proxy server).
Koko start server on port picked randomly, and current directory is set as document root.
- auto open path on browser
- proxy server
- php module
% npm install -g koko
or, install dev-version.
% npm -g install git://github.com/fnobi/koko.git
% cd your/document/root
% koko
document root : your/document/root
[listen 59733]
or, with path. use option -p (--path).
% koko -p your/document/root
document root : your/document/root
[listen 1835]
with -o (--open), Koko auto open url on browser.
% koko -o -p your/document/root
document root : your/document/root
[listen 4797]
[open http://172.0.0.1:4797]
use -o with argument, Koko open url with path on browser.
% koko -o default.html -p your/document/root
document root : your/document/root
[listen 4797]
[open http://172.0.0.1:4797/default.html]
% koko -P 5555
document root : your/document/root
[listen 5555]
with -u (--url), Koko work as proxy server for url.
% koko -u http://fnobi.com/
document root : your/document/root
proxy : fnobi.com:80
[listen 6022]
with --php, Koko exec .php file by /usr/bin/php.
% koko --php
document root : your/document/root
php: on
[listen 10791]