md5-file
Advanced tools
Comparing version 3.1.1 to 3.2.0
@@ -0,1 +1,2 @@ | ||
#!/usr/bin/env node | ||
'use strict' | ||
@@ -11,3 +12,3 @@ | ||
var hash = crypto.createHash('md5') | ||
var buffer = new Buffer(BUFFER_SIZE) | ||
var buffer = Buffer.alloc(BUFFER_SIZE) | ||
@@ -45,3 +46,7 @@ try { | ||
if (require.main === module) { | ||
console.log(md5FileSync(process.argv[2])) | ||
} | ||
module.exports = md5File | ||
module.exports.sync = md5FileSync |
@@ -5,3 +5,3 @@ # License | ||
Copyright (c) 2015 Rory Bradford. | ||
Copyright (c) 2015 - 2017 Rory Bradford and contributors. | ||
@@ -8,0 +8,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "3.1.1", | ||
"version": "3.2.0", | ||
"description": "return an md5sum of a given file", | ||
@@ -19,4 +19,3 @@ "keywords": [ | ||
"name": "Rory Bradford", | ||
"email": "roryrjb@gmail.com", | ||
"url": "www.roryrjb.com" | ||
"email": "rory@dysfunctionalprogramming.com" | ||
}, | ||
@@ -27,2 +26,3 @@ "license": "MIT", | ||
}, | ||
"bin": "index.js", | ||
"devDependencies": { | ||
@@ -29,0 +29,0 @@ "mocha": "^2.4.5", |
@@ -13,2 +13,3 @@ # md5-file [![Build Status](https://travis-ci.org/roryrjb/md5-file.svg?branch=master)](https://travis-ci.org/roryrjb/md5-file) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard) | ||
### As a module | ||
```js | ||
@@ -29,2 +30,7 @@ const md5File = require('md5-file') | ||
### As a command line tool | ||
``` | ||
$ md5-file LICENSE.md | ||
``` | ||
## Promise support | ||
@@ -31,0 +37,0 @@ |
4411
49
62