https://github.com/cjsaylor/md5-transpose-list
Compute md5 hash for a list of file paths with promises.
https://github.com/cjsaylor/md5-transpose-list
Last synced: over 1 year ago
JSON representation
Compute md5 hash for a list of file paths with promises.
- Host: GitHub
- URL: https://github.com/cjsaylor/md5-transpose-list
- Owner: cjsaylor
- License: mit
- Created: 2015-04-12T17:23:03.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-12T19:25:40.000Z (about 11 years ago)
- Last Synced: 2025-02-25T23:17:26.853Z (over 1 year ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# md5-transpose-list [](https://travis-ci.org/cjsaylor/md5-transpose-list)
Compute md5 hash for a list of file paths with promises.
## Example Usage
```javascript
var md5TransposeList = require('md5-transpose-list')();
var list = ['a.txt', 'b.txt', 'nonexistent.txt'];
md5.transpose(list).then(console.log);
// Example output:
// [
// {
// name: 'a.txt',
// hash: '3359b43e76597706df51b63d4bb73a33'
// },
// {
// name: 'b.txt',
// hash: '3359b43e76597706df51b63d4bb73a33'
// },
// {
// name: 'nonexistent.txt',
// hash: null
// }
// ]
```