Socket
Socket
Sign inDemoInstall

cpu-features

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cpu-features

A simple binding to Google's cpu_features library for obtaining information about installed CPU(s)


Version published
Weekly downloads
2.5M
increased by6.81%
Maintainers
1
Weekly downloads
 
Created
Source

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 } }

Keywords

FAQs

Package last updated on 17 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc