🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

md5-file

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

md5-file - npm Package Compare versions

Comparing version

to
3.1.0

2

package.json

@@ -11,3 +11,3 @@ {

],
"version": "3.0.1",
"version": "3.1.0",
"description": "return an md5sum of a given file",

@@ -14,0 +14,0 @@ "keywords": [

@@ -6,2 +6,3 @@ /* eslint-env mocha */

var md5File = require('./')
var md5FileAsPromised = require('./promise')
var assert = require('assert')

@@ -59,2 +60,10 @@

})
if (typeof Promise !== 'undefined') {
it('provides a Promise based api', function () {
return md5FileAsPromised(filename).then(function (hash) {
assert.equal(hash, preCheckedSum)
})
})
}
})