From 13b071e7640f15c69f5aee9a3c4af417d15cccba Mon Sep 17 00:00:00 2001 From: Valery Buchinsky Date: Fri, 1 Mar 2024 11:18:48 +0200 Subject: [PATCH] Remove annoying buy-me-a-coffee links Use github and npm's official ways to do that. --- .github/FUNDING.yml | 1 + README.md | 1 - package.json | 6 ++++++ packages/placeholder-pdf-lib/README.md | 1 - packages/placeholder-pdf-lib/package.json | 6 ++++++ packages/placeholder-pdfkit/README.md | 1 - packages/placeholder-pdfkit/package.json | 6 ++++++ packages/placeholder-pdfkit010/README.md | 1 - packages/placeholder-pdfkit010/package.json | 6 ++++++ packages/placeholder-plain/README.md | 1 - packages/placeholder-plain/package.json | 6 ++++++ packages/signer-p12/README.md | 1 - packages/signer-p12/package.json | 6 ++++++ packages/signpdf/README.md | 1 - packages/signpdf/package.json | 6 ++++++ packages/utils/README.md | 1 - packages/utils/package.json | 6 ++++++ 17 files changed, 49 insertions(+), 8 deletions(-) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 00000000..c72f249e --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +custom: ['https://buymeacoffee.com/vbuch?utm_source=github-sponsor-signpdf'] diff --git a/README.md b/README.md index 25b2aec7..50fb8405 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,6 @@ [![Known Vulnerabilities](https://snyk.io/test/npm/node-signpdf/badge.svg)](https://snyk.io/test/npm/node-signpdf) ![Coverage as reported by Coveralls](https://img.shields.io/coverallsCoverage/github/vbuch/node-signpdf) ![GitHub last commit](https://img.shields.io/github/last-commit/vbuch/node-signpdf?color=red) -[![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) Formerly known as [`node-signpdf`](https://www.npmjs.com/package/node-signpdf) `@signpdf` is a family of packages trying to make signing of PDFs simple in Node.js. diff --git a/package.json b/package.json index b29b2d90..0fe952c3 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,12 @@ "type": "git", "url": "https://github.com/vbuch/node-signpdf" }, + "funding": [ + { + "type": "individual", + "url": "https://buymeacoffee.com/vbuch?utm_source=npm-funding-signpdf" + } + ], "license": "MIT", "engines": { "node": ">=12" diff --git a/packages/placeholder-pdf-lib/README.md b/packages/placeholder-pdf-lib/README.md index 073fc509..a8e156ef 100644 --- a/packages/placeholder-pdf-lib/README.md +++ b/packages/placeholder-pdf-lib/README.md @@ -3,7 +3,6 @@ for [![@signpdf](https://raw.githubusercontent.com/vbuch/node-signpdf/master/resources/logo-horizontal.svg?sanitize=true)](https://github.com/vbuch/node-signpdf/) [![npm version](https://badge.fury.io/js/@signpdf%2Fplaceholder-pdf-lib.svg)](https://badge.fury.io/js/@signpdf%2Fplaceholder-pdf-lib) -[![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) Works with `PDF-LIB` and given a PDFDocument that is in the works, adds an e-signature placeholder. When the PDF is ready you can convert it to Buffer and pass it to `@signpdf/signpdf` to complete the process. diff --git a/packages/placeholder-pdf-lib/package.json b/packages/placeholder-pdf-lib/package.json index 70ed7db0..eabd8f47 100644 --- a/packages/placeholder-pdf-lib/package.json +++ b/packages/placeholder-pdf-lib/package.json @@ -21,6 +21,12 @@ "pades", "digital signature" ], + "funding": [ + { + "type": "individual", + "url": "https://buymeacoffee.com/vbuch?utm_source=npm-funding-signpdf" + } + ], "main": "dist/pdflibAddPlaceholder.js", "types": "dist/pdflibAddPlaceholder.d.ts", "files": [ diff --git a/packages/placeholder-pdfkit/README.md b/packages/placeholder-pdfkit/README.md index 1d5b2dcf..95fd022f 100644 --- a/packages/placeholder-pdfkit/README.md +++ b/packages/placeholder-pdfkit/README.md @@ -3,7 +3,6 @@ for [![@signpdf](https://raw.githubusercontent.com/vbuch/node-signpdf/master/resources/logo-horizontal.svg?sanitize=true)](https://github.com/vbuch/node-signpdf/) [![npm version](https://badge.fury.io/js/@signpdf%2Fplaceholder-pdfkit.svg)](https://badge.fury.io/js/@signpdf%2Fplaceholder-pdfkit) -[![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) Works on top of `PDFKit 0.11+` and given a PDFDocument that is in the works, adds an e-signature placeholder. When the PDF is ready you can pass it to `@signpdf/signpdf` to complete the process. diff --git a/packages/placeholder-pdfkit/package.json b/packages/placeholder-pdfkit/package.json index 4611f165..2966b66e 100644 --- a/packages/placeholder-pdfkit/package.json +++ b/packages/placeholder-pdfkit/package.json @@ -21,6 +21,12 @@ "pades", "digital signature" ], + "funding": [ + { + "type": "individual", + "url": "https://buymeacoffee.com/vbuch?utm_source=npm-funding-signpdf" + } + ], "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ diff --git a/packages/placeholder-pdfkit010/README.md b/packages/placeholder-pdfkit010/README.md index 37b4d679..a33f9892 100644 --- a/packages/placeholder-pdfkit010/README.md +++ b/packages/placeholder-pdfkit010/README.md @@ -3,7 +3,6 @@ for [![@signpdf](https://raw.githubusercontent.com/vbuch/node-signpdf/master/resources/logo-horizontal.svg?sanitize=true)](https://github.com/vbuch/node-signpdf/) [![npm version](https://badge.fury.io/js/@signpdf%2Fplaceholder-pdfkit010.svg)](https://badge.fury.io/js/@signpdf%2Fplaceholder-pdfkit010) -[![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) Works on top of `PDFKit 0.10.0` and given a PDFDocument that is in the works, adds an e-signature placeholder. When the PDF is ready you can pass it to `@signpdf/signpdf` to complete the process. diff --git a/packages/placeholder-pdfkit010/package.json b/packages/placeholder-pdfkit010/package.json index d263a133..15273cd3 100644 --- a/packages/placeholder-pdfkit010/package.json +++ b/packages/placeholder-pdfkit010/package.json @@ -21,6 +21,12 @@ "pades", "digital signature" ], + "funding": [ + { + "type": "individual", + "url": "https://buymeacoffee.com/vbuch?utm_source=npm-funding-signpdf" + } + ], "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ diff --git a/packages/placeholder-plain/README.md b/packages/placeholder-plain/README.md index fd27edcd..dc89dbd0 100644 --- a/packages/placeholder-plain/README.md +++ b/packages/placeholder-plain/README.md @@ -3,7 +3,6 @@ for [![@signpdf](https://raw.githubusercontent.com/vbuch/node-signpdf/master/resources/logo-horizontal.svg?sanitize=true)](https://github.com/vbuch/node-signpdf/) [![npm version](https://badge.fury.io/js/@signpdf%2Fplaceholder-plain.svg)](https://badge.fury.io/js/@signpdf%2Fplaceholder-plain) -[![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) Implements adding e-signature placeholder with plain string operations (.indexOf(), .replace(), .match(), etc.). Because of the lack of semantics it is rather *fragile*. Additionally it doesn't support streams and only works on PDF version <= 1.3. Regardless of those disadvantages this flow seems to be **the most popular among the users of @signpdf**. diff --git a/packages/placeholder-plain/package.json b/packages/placeholder-plain/package.json index dad847f7..e095b19d 100644 --- a/packages/placeholder-plain/package.json +++ b/packages/placeholder-plain/package.json @@ -21,6 +21,12 @@ "pades", "digital signature" ], + "funding": [ + { + "type": "individual", + "url": "https://buymeacoffee.com/vbuch?utm_source=npm-funding-signpdf" + } + ], "main": "dist/plainAddPlaceholder.js", "files": [ "dist", diff --git a/packages/signer-p12/README.md b/packages/signer-p12/README.md index f44690d7..91d92f27 100644 --- a/packages/signer-p12/README.md +++ b/packages/signer-p12/README.md @@ -3,7 +3,6 @@ for [![@signpdf](https://raw.githubusercontent.com/vbuch/node-signpdf/master/resources/logo-horizontal.svg?sanitize=true)](https://github.com/vbuch/node-signpdf/) [![npm version](https://badge.fury.io/js/@signpdf%2Fsigner-p12.svg)](https://badge.fury.io/js/@signpdf%2Fsigner-p12) -[![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) Uses `node-forge` to create a detached signature of a given `Buffer` using a PKCS#12 certificate bundle. diff --git a/packages/signer-p12/package.json b/packages/signer-p12/package.json index 36177055..c64f7488 100644 --- a/packages/signer-p12/package.json +++ b/packages/signer-p12/package.json @@ -22,6 +22,12 @@ "P12", "digital signature" ], + "funding": [ + { + "type": "individual", + "url": "https://buymeacoffee.com/vbuch?utm_source=npm-funding-signpdf" + } + ], "main": "dist/P12Signer.js", "types": "dist/P12Signer.d.ts", "files": [ diff --git a/packages/signpdf/README.md b/packages/signpdf/README.md index 598b195a..dd9a4bc4 100644 --- a/packages/signpdf/README.md +++ b/packages/signpdf/README.md @@ -1,7 +1,6 @@ # [![@signpdf](https://raw.githubusercontent.com/vbuch/node-signpdf/master/resources/logo-horizontal.svg?sanitize=true)](/) [![npm version](https://badge.fury.io/js/@signpdf%2Fsignpdf.svg)](https://badge.fury.io/js/@signpdf%2Fsignpdf) -[![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) The main package from the [@signpdf family](/) that tries to make signing of PDFs simple in Node.js. diff --git a/packages/signpdf/package.json b/packages/signpdf/package.json index 589c3f4b..ec0cbcc0 100644 --- a/packages/signpdf/package.json +++ b/packages/signpdf/package.json @@ -21,6 +21,12 @@ "pades", "digital signature" ], + "funding": [ + { + "type": "individual", + "url": "https://buymeacoffee.com/vbuch?utm_source=npm-funding-signpdf" + } + ], "main": "dist/signpdf.js", "files": [ "dist", diff --git a/packages/utils/README.md b/packages/utils/README.md index 118aaaa4..634ef0fc 100644 --- a/packages/utils/README.md +++ b/packages/utils/README.md @@ -3,7 +3,6 @@ for [![@signpdf](https://raw.githubusercontent.com/vbuch/node-signpdf/master/resources/logo-horizontal.svg?sanitize=true)](https://github.com/vbuch/node-signpdf/) [![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) ## Usage diff --git a/packages/utils/package.json b/packages/utils/package.json index 1b709f9e..c7aa084a 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -21,6 +21,12 @@ "pades", "digital signature" ], + "funding": [ + { + "type": "individual", + "url": "https://buymeacoffee.com/vbuch?utm_source=npm-funding-signpdf" + } + ], "main": "dist/index.js", "types": "dist/index.d.ts", "files": [