Skip to content

gillstrom/osx-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

osx-info Build Status

Get information about your Mac

Install

$ npm install --save osx-info

Usage

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',
		...
	}
	*/
});

CLI

$ npm install --global osx-info
$ osx-info --help

  Usage
    $ osx-info

  Options
    --json  Output the result as JSON

Related

License

MIT © Andreas Gillström