Comparing version 1.1.0 to 1.1.1
@@ -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); | ||
``` | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3705
45