Skip to content

Instantly share code, notes, and snippets.

View jakoboo's full-sized avatar
👾

Jakub Bąbelek jakoboo

👾
  • Poznań, Poland
View GitHub Profile
// Source of https://www.npmjs.com/package/physical-cpu-count
'use strict'
const os = require('os')
const childProcess = require('child_process')
function exec (command) {
const output = childProcess.execSync(command, {encoding: 'utf8'})
return output