cpu-features
A simple binding to Google's cpu_features library for obtaining information about installed CPU(s)
Last updated 2 years ago by mscdex .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install cpu-features 
SYNC missed versions from official npm registry.

Description

A simple node.js binding to cpu_features for obtaining information about installed CPU(s).

Requirements

Install

npm install cpu-features

Example

  // Generally it's a good idea to just call this once and
  // reuse the result since `cpu-features` does not cache
  // the result itself.
  const features = require('cpu-features')();

  console.log(features);
  // example output:
  // { arch: 'x86',
  //   brand: 'Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz',
  //   family: 6,
  //   model: 58,
  //   stepping: 9,
  //   uarch: 'INTEL_IVB',
  //   flags:
  //    { fpu: true,
  //      tsc: true,
  //      cx8: true,
  //      clfsh: true,
  //      mmx: true,
  //      aes: true,
  //      erms: true,
  //      f16c: true,
  //      sse: true,
  //      sse2: true,
  //      sse3: true,
  //      ssse3: true,
  //      sse4_1: true,
  //      sse4_2: true,
  //      avx: true,
  //      pclmulqdq: true,
  //      cx16: true,
  //      popcnt: true,
  //      rdrnd: true,
  //      ss: true } }

Current Tags

  • 0.0.9                                ...           latest (a year ago)

9 Versions

  • 0.0.9                                ...           a year ago
  • 0.0.8                                ...           2 years ago
  • 0.0.7                                ...           2 years ago
  • 0.0.6                                ...           2 years ago
  • 0.0.5                                ...           2 years ago
  • 0.0.4                                ...           3 years ago
  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           4 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 3
Last Month 0
Dependencies (2)
Dev Dependencies (2)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |