Skip to content

Commit

Permalink
πŸ“ utils
Browse files Browse the repository at this point in the history
  • Loading branch information
vbuch committed Oct 5, 2023
1 parent b5f07c8 commit 5122a02
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions packages/utils/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# ![@signpdf](https://raw.githubusercontent.com/vbuch/node-signpdf/master/resources/logo-horizontal.svg?sanitize=true)

[![npm version](https://badge.fury.io/js/@signpdf%2Futils.svg)](https://badge.fury.io/js/@signpdf%2Futils)
[![Donate to this project using Buy Me A Coffee](https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg)](https://buymeacoffee.com/vbuch)

Utilities from and for the [@signpdf family of packages](https://github.com/vbuch/node-signpdf/) that tries to make signing of PDFs simple in Node.js.

## Usage

Used by the other `@signpdf` packages internally. Additionally, needed for **PAdES compliant signatures**"

```js
import { plainAddPlaceholder } from '@signpdf/placeholder-plain';
import { SUBFILTER_ETSI_CADES_DETACHED } from '@signpdf/utils';

const pdfToSign = plainAddPlaceholder({
...,
subFilter: SUBFILTER_ETSI_CADES_DETACHED,
});
```

## Notes

* Feel free to copy and paste any part of this code. See its defined [Purpose](#purpose).

0 comments on commit 5122a02

Please sign in to comment.