Compare size between two files
Install
$ npm install --save compare-size
Usage
const compareSize = ; ; compareSize;//=> {foo.zip: 439, bar.zip: 325, difference: 114}
API
compareSize(a, b)
Compares size between two files. Returns a promise for an object with the stats difference.
a
Type: string
Path to the first file.
b
Type: string
Path to the second file.
Related
- compare-size-cli - CLI for this module
License
MIT © Kevin Mårtensson