# file-hash

> File hash for file cloud computing

Latest version **0.0.5** (published 2015-09-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install file-hash
pnpm add file-hash
yarn add file-hash
bun add file-hash
```

Provides the command `fash`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2015-09-16 |
| First published | 2015-09-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | calidion |
| Maintainers | calidion |
| Keywords | file-hash, hash, file, sha, md5, cloud, tag |

## Links

- npm: https://www.npmjs.com/package/file-hash
- Repository: https://github.com/jssdkcn/file-hash
- Homepage: https://github.com/jssdkcn/file-hash#readme
- Issues: https://github.com/jssdkcn/file-hash/issues
- npm.io page: https://npm.io/package/file-hash

## Dependencies (1)

- [meow](https://npm.io/package/meow.md) ^3.1.0

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 0.0.5 (latest) — 2015-09-16
- 0.0.4 — 2015-09-16
- 0.0.3 — 2015-09-16
- 0.0.2 — 2015-09-16
- 0.0.1 — 2015-09-16

## README

#  [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url]

> File hash for file-cloud


## Install

```sh
$ npm install --save file-hash
```


## Usage

```js
var fileHash = require('file-hash');
var path = require('path');

fileHash(function (hash) {
  //result, false if error occur
  //'0bfc0089cda3279444f72428f0f940a3ebfdc7f8'
  }, 
  //resolvable path
  path.resolve(__dirname, 'a.txt'),
 //type of algorithm
 'sha1',
  //upper or not, lower is default
  true
  );

    
```

```sh
$ npm install --global file-hash
$ fash --help
$ fash  a.txt 
//9a3f2bdd77e0bd4c87e954e154f05d525c85f844
$ fash a.jpg --type md5
//969996c794949bbf0e40827cefc98f2d
$ fash a.jpg --type md5 --case upper
//969996C794949BBF0E40827CEFC98F2D

```


## License

MIT © [calidion](blog.3gcnbeta.com)


[npm-image]: https://badge.fury.io/js/file-hash.svg
[npm-url]: https://npmjs.org/package/file-hash
[travis-image]: https://travis-ci.org/JSSDKCN/file-hash.svg?branch=master
[travis-url]: https://travis-ci.org/JSSDKCN/file-hash
[daviddm-image]: https://david-dm.org/JSSDKCN/file-hash.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/JSSDKCN/file-hash

---
_Source: https://npm.io/package/file-hash · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
