apple-system-profiler

wrapper around apple's system_profiler that parses the output

Usage no npm install needed!

<script type="module">
  import appleSystemProfiler from 'https://cdn.skypack.dev/apple-system-profiler';
</script>

README

apple-system-profiler

wrapper around apple's system_profiler that parses the output

usage

var asp = require('./index.js')

// Grab graphics, hardware, and memory info
// and parse them out as a JavaScript object

asp({
  dataTypes: [
    'SPDisplaysDataType',
    'SPHardwareDataType',
    'SPMemoryDataType'
  ]
}, (err, out) => {
  if ( err ) throw err;
  console.log(out);
});

see test.js