2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

paiza.ioのnode.jsのバージョンを調べる

2
Last updated at Posted at 2017-11-15

paiza.ioにて

https://paiza.io/ja/projects/new
Screenshot_5.png

以下、javascriptタブのコンソールに入力

const { spawn } = require('child_process');
const ls = spawn('node', ['-v']);

ls.stdout.on('data', (data) => {
  console.log(`stdout: ${data}`);
});

「ctrl + enter」で実行

出力

Screenshot_4.png

備考

  • 小ネタレベル
  • ほぼnodejs公式「child_process」のリファレンスからソース丸コピペ引用
  • paiza.ioの説明まるまる割愛してます。すみません。手抜き
2
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?