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.0 to 1.1.1

2

package.json

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

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

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

@@ -13,3 +13,3 @@ # md5-file

### API
### Sync

@@ -20,2 +20,27 @@ ```javascript

md5('path/to/a_file'); // '18e904aae79b5642ed7975c0a0074936'
```
```
### Async
```javascript
md5.async('./README.md', function (data) {
console.log(data);
});
md5.async('./README.md', function (data) {
console.log(data);
}, true);
// errors
// non-strict: will pass through an error to `data`
md5.async('./null', function (data) {
console.log(data);
});
// strict: will throw an error
md5.async('./null', function (data) {
console.log(data);
}, true);
```
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