Skip to content

kevva/macos-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

macos-model Build Status

Get your Mac model

Install

$ npm install --save macos-model

Usage

const macosModel = require('macos-model');

macosModel().then(model => {
	console.log(model);
	//=> 'MacBook Pro (Retina, 15-inch, Mid 2014)'
});

CLI

$ npm install --global macos-model
$ macos-model --help

  Example
    $ macos-model
    MacBook Pro (Retina, 15-inch, Mid 2014)

Related

License

MIT © Kevin Martensson