# deterministic-sha1

> Create SHA1 of a directory, which doesn't change if the files haven't changed (e.g., access time is ignored).

Latest version **0.0.2** (published 2017-02-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install deterministic-sha1
pnpm add deterministic-sha1
yarn add deterministic-sha1
bun add deterministic-sha1
```

## 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.2 |
| Published | 2017-02-28 |
| First published | 2017-02-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sander Huijsen |
| Maintainers | shuijsen |

## Links

- npm: https://www.npmjs.com/package/deterministic-sha1
- Repository: https://github.com/bitgenics/deterministic-sha1
- Homepage: https://github.com/bitgenics/deterministic-sha1#readme
- Issues: https://github.com/bitgenics/deterministic-sha1/issues
- npm.io page: https://npm.io/package/deterministic-sha1

## Dependencies (2)

- [path](https://npm.io/package/path.md) ^0.12.7
- [crypto](https://npm.io/package/crypto.md) 0.0.3

## Recent versions

- 0.0.2 (latest) — 2017-02-28
- 0.0.1 — 2017-02-28

## README

# deterministic-sha1
Generate the same SHA1 from the same folder every time, regardless of whether a file was only accessed. 

The output from two folders with identical files in them will yield the exact same result every time.

Please note this is a synchronous function, so you will find no callbacks.

## Usage

### Install 
npm i deterministic-sha1 -S

### Use

```javascript
const sha1Sync = require('deterministic-sha1');

const hash = sha1Sync('some_folder');
console.log(hash)
```

## Warning

This library is still under development. We use it for our own purposes, which may not match yours.

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