# commonform-hash

> cryptographically hash Common Forms

Latest version **2.0.0** (published 2026-09-05) · BlueOak-1.0.0 license · 0 weekly downloads

## Install

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

Provides the command `commonform-hash`.

## Health

**Score 60/100 (C)** — status: active.

Positive: esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2026-09-05 |
| First published | 2015-02-05 |
| Weekly downloads | 0 |
| License | BlueOak-1.0.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kyle E. Mitchell |
| Maintainers | kemitchell |
| Keywords | contracts, digest, document assembly, hash, knowledge management, law |

## Links

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

## Dependencies (2)

- [@noble/hashes](https://npm.io/package/@noble/hashes.md) ^2.4.0
- [commonform-serialize](https://npm.io/package/commonform-serialize.md) ^2.0.0

## Alternatives

- [@cantoo/pdf-lib](https://npm.io/package/@cantoo/pdf-lib.md) — 297.9K weekly downloads
- [datatables.net-buttons](https://npm.io/package/datatables.net-buttons.md) — 200.1K weekly downloads
- [@ckeditor/ckeditor5-export-pdf](https://npm.io/package/@ckeditor/ckeditor5-export-pdf.md) — 167.0K weekly downloads
- [scanbot-web-sdk](https://npm.io/package/scanbot-web-sdk.md) — 15.0K weekly downloads
- [@syncfusion/ej2-angular-pdfviewer](https://npm.io/package/@syncfusion/ej2-angular-pdfviewer.md) — 8.8K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2026-09-05
- 1.0.2 — 2026-06-04
- 1.0.1 — 2021-12-21
- 1.0.0 — 2019-05-29
- 0.5.0 — 2017-08-12
- 0.4.3 — 2016-07-24
- 0.4.2 — 2016-01-13
- 0.4.1 — 2015-08-28
- 0.4.0 — 2015-04-15
- 0.3.0 — 2015-02-22
- 0.2.0 — 2015-02-21
- 0.1.2 — 2015-02-11
- 0.1.1 — 2015-02-10
- 0.1.0 — 2015-02-05

## README

# commonform-hash

cryptographically hash Common Forms

```javascript
import hash from 'commonform-hash'
import assert from 'node:assert'

assert.strictEqual(
  hash({ content: [ 'This is a form.' ] }),
  '0cb94c21d8e303ae4785e9433afe33132b4fe76275ae96d9b2d0b10a6fdf716a'
)

assert.strictEqual(
  hash({ conspicuous: 'yes', content: [ 'This is a form.' ] }),
  '76b69d4004186e35b26fb816835a92de5cfa8b1e553e45516b878bb3d35187d5'
)

assert.strictEqual(
  hash({ content: [ 'This is a form.' ], conspicuous: 'yes' }),
  '76b69d4004186e35b26fb816835a92de5cfa8b1e553e45516b878bb3d35187d5'
)
```

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