LoginSignup
2
3

More than 5 years have passed since last update.

Node Streamをブラウザで動かす

Posted at

Node Stream APIを実装するサンプル をブラウザで動かします。

ソースの修正は必要ありません。

ビルドツール

準備

npm install browserify babelify stream-browserify

ビルド

node_modules/browserify/bin/cmd.js index.js -t babelify > bundle.js

html

index.html
<body>
  <script src="bundle.js"></script>
</body>

結果

開発ツールのConsole上に出力します。
htmlには何も表示しません。

スクリーンショット 2015-05-11 10.11.21.png

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3