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.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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc