Get information about your Mac
$ npm install --save osx-info
const osxInfo = require('osx-info');
osxInfo().then(data => {
console.log(data);
/*
{
name: 'MacBook Pro (Retina, 15-inch, Mid 2014)',
identifier: 'MacBookPro11,3',
core: 'Intel Core i7',
...
}
*/
});
$ npm install --global osx-info
$ osx-info --help
Usage
$ osx-info
Options
--json Output the result as JSON
- osx-model - Get your Mac model
MIT © Andreas Gillström