dolanmiu / docx

Easily generate and modify .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.
https://docx.js.org/
MIT License
4.44k stars 486 forks source link

feat: Add ability to detect patches which are present in a file #2633

Closed zarwan-translate closed 6 months ago

zarwan-translate commented 8 months ago

Greetings 👋

I have a use case where I won't know in advance which patches are available within a template.

This PR adds functionality to traverse a document looking for handlebars and returning the patches found.

zarwan-translate commented 8 months ago

@dolanmiu - For some reason, I was unable to add you as a reviewer. Are you able to take a look at this PR, please?

dolanmiu commented 7 months ago

Looking, thank you

codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (022b25c) to head (6a7890f).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2633 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 280 281 +1 Lines 14048 14081 +33 Branches 1369 1378 +9 ========================================= + Hits 14048 14081 +33 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.