laiso / site2pdf

Generate comprehensive PDFs of entire websites, ideal for RAG.
MIT License
168 stars 8 forks source link

Concurrency Control and Dependency Injection in Testing #1

Closed laiso closed 3 months ago

laiso commented 3 months ago

Concurrency Control:

https://github.com/laiso/site2pdf/blob/a48ceacb2ec43f516506c7a12173c32cd1bf40a1/index.ts#L10-L16

Test Improvements:

https://github.com/laiso/site2pdf/blob/a48ceacb2ec43f516506c7a12173c32cd1bf40a1/index.test.ts#L17-L26

This enhances the PDF generation logic, improves testability, and adds concurrency control.