app-size

3.0.1 • Public • Published

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

Package Sidebar

Install

npm i app-size

Weekly Downloads

9

Version

3.0.1

License

MIT

Last publish

Collaborators

  • gillstrom