LoginSignup
0
0

More than 5 years have passed since last update.

Node.JS でCPU の名前を取得する

Posted at

NodeJS バージョン

v9.4.0

コード

const os = require('os');
console.log(os.cpus()[0].model);

出力結果

Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz
0
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
0
0