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.5 to 1.1.7

2

index.js

@@ -17,3 +17,3 @@ 'use strict';

if (strict) {
throw error;
throw new Error(error);
}

@@ -20,0 +20,0 @@ return callback(error);

@@ -8,3 +8,3 @@ {

],
"version": "1.1.5",
"version": "1.1.7",
"description": "return an md5sum of a given file",

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

@@ -1,7 +0,5 @@

# md5-file
# md5-file [![Build Status](https://travis-ci.org/roryrjb/md5-file.svg?branch=master)](https://travis-ci.org/roryrjb/md5-file)
### Overview
> Simply return an `md5` sum of a given file.
Simply return an `md5` sum of a given file.
### Installation

@@ -13,2 +11,8 @@

__Test:__
```
$ npm test
```
### API

@@ -53,2 +57,1 @@

```
'use strict';
var md5 = require('./index');
var assert = require('assert');
console.log('md5 (1) ' + md5('./README.md'));
assert.equal(md5('./README.md'), 'fb88aa66d27282070ab60b52301651af');
md5.async('./README.md', function (data) {
console.log('md5 (2) ' + data);
assert.equal(data, 'fb88aa66d27282070ab60b52301651af');
});
md5.async('./README.md', function (data) {
console.log('md5 (3) ' + data);
assert.equal(data, 'fb88aa66d27282070ab60b52301651af');
}, true);

@@ -19,9 +20,3 @@

md5.async('./null', function (data) {
console.log('md5 (4) ' + data);
assert.equal(JSON.stringify(data), '{"errno":34,"code":"ENOENT","path":"./null"}');
});
// strict: will throw an error
md5.async('./null', function (data) {
console.log('md5 (5) ' + data);
}, true);
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