Socket
Socket
Sign inDemoInstall

md5-file

Package Overview
Dependencies
0
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.1 to 1.1.2

17

index.js
// The MIT License (MIT)
//
//
// Copyright (c) 2014 Rory J. Bradford.
//
//
// Permission is hereby granted, free of charge, to any person obtaining a

@@ -11,6 +11,6 @@ // copy of this software and associated documentation files (the 'Software'),

// Software is furnished to do so, subject to the following conditions:
//
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
//
// THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR

@@ -24,6 +24,7 @@ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,

"use strict";
var crypto = require('crypto');
var fs = require('fs');
'use strict';
var crypto = require('crypto'),
fs = require('fs');
module.exports = function (filename) {

@@ -47,5 +48,5 @@ var sum = crypto.createHash('md5');

sum.update(data);
return callback(sum.digest('hex'));
return callback(sum.digest('hex'));
}
});
}

@@ -7,3 +7,3 @@ {

],
"version": "1.1.1",
"version": "1.1.2",
"description": "return an md5sum of a given file",

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

# md5-file
[![NPM](https://nodei.co/npm-dl/md5-file.png?months=6)](https://nodei.co/npm/md5-file/)
### Overview

@@ -4,0 +6,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc