3.0.0 • Published 8 years ago

compare-size v3.0.0

Weekly downloads
27
License
MIT
Repository
github
Last release
8 years ago

compare-size Build Status

Compare size between two files

Install

$ npm install --save compare-size

Usage

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}

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

License

MIT © Kevin Mårtensson

3.0.0

8 years ago

2.0.0

8 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago