md5-file
Advanced tools
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 @@ |
3793
47