# hash-file

> Create a hashed file name

Latest version **3.0.0** (published 2016-04-11) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2016-04-11 |
| First published | 2014-01-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/hash-file) |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Kevin Mårtensson |
| Maintainers | kevva |
| Keywords | file, hash, name, crypto |

## Links

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

## Dependencies (1)

- [hasha](https://npm.io/package/hasha.md) ^2.2.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

- 3.0.0 (latest) — 2016-04-11
- 2.1.0 — 2015-05-23
- 2.0.0 — 2015-05-04
- 1.0.0 — 2015-02-21
- 0.1.0 — 2014-01-17

## README

# hash-file [![Build Status](https://travis-ci.org/kevva/hash-file.svg?branch=master)](https://travis-ci.org/kevva/hash-file)

> Create a hashed file name


## Install

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


## Usage

```js
const hashFile = require('hash-file');

hashFile('test.jpg').then(hash => {
	console.log(hash);
	//=> 'ac8b2c4b75b2d36988c62b919a857f1baacfcd4c'
});

hashFile.sync('test.jpg');
//=> 'ac8b2c4b75b2d36988c62b919a857f1baacfcd4c'
```


## License

MIT © [Kevin Mårtensson](http://kevinmartensson.com)

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