Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

md5-file

Package Overview
Dependencies
Maintainers
1
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 1.1.4 to 1.1.5

LICENSE.md

3

package.json

@@ -8,5 +8,6 @@ {

],
"version": "1.1.4",
"version": "1.1.5",
"description": "return an md5sum of a given file",
"keywords": [
"md5",
"md5sum",

@@ -13,0 +14,0 @@ "checksum"

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

@@ -19,8 +17,8 @@

__md5file(path)__
__md5File(path)__
```javascript
var md5file = require('md5-file');
var md5File = require('md5-file');
md5file('path/to/a_file'); // '18e904aae79b5642ed7975c0a0074936'
md5File('path/to/a_file'); // '18e904aae79b5642ed7975c0a0074936'
```

@@ -30,3 +28,3 @@

__md5file(path, callback, [strict])__
__md5File(path, callback, [strict])__

@@ -36,7 +34,7 @@ If _strict_ is `true` and there is an error it will `throw` it, otherwise it will pass an error string through the callback.

```javascript
md5file.async('./README.md', function (data) {
md5File.async('./README.md', function (data) {
console.log(data);
});
md5file.async('./README.md', function (data) {
md5File.async('./README.md', function (data) {
console.log(data);

@@ -48,3 +46,3 @@ }, true);

// non-strict: will pass through an error to `data`
md5file.async('./null', function (data) {
md5File.async('./null', function (data) {
console.log(data);

@@ -54,3 +52,3 @@ });

// strict: will throw an error
md5file.async('./null', function (data) {
md5File.async('./null', function (data) {
console.log(data);

@@ -57,0 +55,0 @@ }, true);

@@ -0,0 +0,0 @@ 'use strict';

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc