From 623c4ba91d827e7e5b820cd8e1fb7ef9e4317dfc Mon Sep 17 00:00:00 2001 From: Jacek Fiszer Date: Sun, 27 Oct 2024 17:51:03 +0100 Subject: [PATCH] docs(readme): add node instructions --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ddc4df3..15862ee 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,8 @@ efficient and high-quality PDF manipulation. - **Merge PDFs**: Combine multiple PDFs into one. - **Split PDFs**: Separate a PDF into individual pages. - **Flexible CLI**: Easily execute PDF operations from the command line. -- **Programmatic Use**: Import `pdfrex` functions directly in Deno projects. +- **Programmatic Use**: Import `pdfrex` functions directly in Deno (or Node) + projects. ## Installation @@ -141,6 +142,16 @@ await splitAll(); await splitPdf("document.pdf", { outputDir: "./pages", prefix: "page" }); ``` +### Adding to a Node.js project + +```bash +npx jsr add @jackfiszr/pdfrex@0.0.3 +``` + +```javascript +import { mergePdfs, splitPdf } from "@jackfiszr/pdfrex@0.0.3"; +``` + ## Contributing Contributions, issues, and feature requests are welcome! Feel free to check out