Skip to content

Commit

Permalink
docs(readme): add node instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfiszr committed Oct 27, 2024
1 parent 934954f commit 623c4ba
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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/[email protected]
```

```javascript
import { mergePdfs, splitPdf } from "@jackfiszr/[email protected]";
```

## Contributing

Contributions, issues, and feature requests are welcome! Feel free to check out
Expand Down

0 comments on commit 623c4ba

Please sign in to comment.