Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heapwolf/hashd
Recursively hash files in a specified path, appreciate ignore files and patterns.
https://github.com/heapwolf/hashd
Last synced: 25 days ago
JSON representation
Recursively hash files in a specified path, appreciate ignore files and patterns.
- Host: GitHub
- URL: https://github.com/heapwolf/hashd
- Owner: heapwolf
- Created: 2013-07-27T21:06:54.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-08-09T07:12:49.000Z (over 11 years ago)
- Last Synced: 2024-10-03T08:33:02.840Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 133 KB
- Stars: 8
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SYNOPSIS
recursively hash all the files in a specified path. Ensure hashing happens
in a predictable order. Appreciate `.ignore` glob `files` & `patterns`.# USAGE
Uses `sha1` by default; use `openssl list-message-digest-algorithms`
for a list of supported algorithms.### lib
```js
var hashd = require('hashd')var hash = hashd('./path', {
algorithm: 'md5',
files: ['.gitignore', '.npmignore'],
patterns: ['*.txt']
})console.log(hash)
```### cli
```bash
npm install hashd -g
hashd ./path --algorithm sha1 --files '.gitignore .npmignore' --patterns '*.gz'
```## OPTIONS
CLI options and api options are the same. First argument is a path.