たとえばGitHubとかで見つけたCSSとかJavaScriptとかのプロジェクトのサンプルとかをささっと確認したい時がありますよね。 そんな時にhttp-serverというやつがすごく便利です。 https://github.com/nodeapps/http-server このhttp-serverをインストールしておくと、任意のディレクトリで`http-server`というコマンドを実行するだけでそのディレクトリをドキュメントルートにしたウェブサーバーが起動します。 $ http-server Starting up http-server, serving ./ on: http://0.0.0.0:8080 Hit CTRL-C to stop the server インストール方法 Node.jsがインストール済みならインストールは簡単です。 $ npm install -g
![Node.jsのhttp-serverっていうコマンドラインのウェブサーバーが便利 | Firegoby](https://cdn-ak-scissors.b.st-hatena.com/image/square/ac537400599fa15a382961630ca06a4a22fc43c8/height=288;version=1;width=512/https%3A%2F%2Ffiregoby.jp%2Fwp-content%2Fuploads%2F2014%2F10%2Fpublic.png)