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