osx-app-version icon indicating copy to clipboard operation
osx-app-version copied to clipboard

Get an .app's version in OS X systems.

osx-app-version Build Status

Get an .app's version in OS X systems.

Install

$ npm install --save osx-app-version

Usage

const appVersion = require('osx-app-version');

appVersion('Safari').then(version => {
	console.log(version);
	//=> '8.0'
});

appVersion('/Applications/Safari.app').then(version => {
	console.log(version);
	//=> '8.0'
});

appVersion('com.apple.Safari').then(version => {
	console.log(version);
	//=> '8.0'
});

CLI

$ npm install --global osx-app-version
$ osx-app-version --help

  Example
    $ osx-app-version Safari
    $ osx-app-version /Applications/Safari.app
    $ osx-app-version com.apple.Safari

Related

  • osx-app - Get information about an app

License

MIT © Andreas Gillström