npm.io
3.0.1 • Published 10 years agoCLI

app-size

Licence
MIT
Version
3.0.1
Deps
5
Vulns
0
Weekly
0
Stars
2

app-size Build Status

Get an .app's size in byte

Install

$ npm install --save app-size

Usage

const appSize = require('app-size');

appSize('Safari').then(size => {
	console.log(size);
	//=> 34058118
});

appSize('/Applications/Safari.app').then(size => {
	console.log(size);
	//=> 34058118
});

appSize('com.apple.Safari').then(size => {
	console.log(size);
	//=> 34058118
});

CLI

$ npm install --global app-size
$ app-size --help

  Example
    $ app-size Safari
    $ app-size /Applications/Safari.app
    $ app-size com.apple.Safari

License

MIT Andreas Gillström

Keywords