app-size

Get an .app's size in byte

Usage no npm install needed!

<script type="module">
  import appSize from 'https://cdn.skypack.dev/app-size';
</script>

README

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