Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

compare-size

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

compare-size

Compare size between two files

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
17
-68.52%
Maintainers
1
Weekly downloads
 
Created
Source

compare-size Build Status

Compare size between two files

Install

$ npm install --save compare-size

Usage

var compareSize = require('compare-size');

compareSize('foo.zip', 'bar.zip', function (err, res) {
	if (err) {
		throw err;
	}

	console.log(res);
	//=> { foo.zip: 439, bar.zip: 325, difference: 114 }
});

compareSize.sync('foo.zip', 'bar.zip');
//=> { foo.zip: 439, bar.zip: 325, difference: 114 }

License

MIT © Kevin Mårtensson

Keywords

compare

FAQs

Package last updated on 11 Oct 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts