# Which is best for production NPM or Angular way in PDF.js Express Plus

**URL:** <https://pdfjs.community/t/which-is-best-for-production-npm-or-angular-way-in-pdf-js-express-plus/2247>\
**Category:** Technical Support\
**Tags:** pdfjs-express\
**Created:** [December 20, 2022, 4:47pm UTC](https://pdfjs.community/t/which-is-best-for-production-npm-or-angular-way-in-pdf-js-express-plus/2247 "2022-12-20T16:47:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rakshitha\_r](https://avatars.discourse-cdn.com/v4/letter/r/82dd89/32.png) [@rakshitha\_r](https://pdfjs.community/u/rakshitha_r)\
**Post date:** [December 20, 2022, 4:47pm UTC](https://pdfjs.community/t/which-is-best-for-production-npm-or-angular-way-in-pdf-js-express-plus/2247/1 "2022-12-20T16:47:22Z")

</div>

hi Kevin,  
i am using PDFJS Express Plus to my existing project. Which one you recommened to go with either npm way [npm way](https://pdfjs.express/documentation/get-started/npm) or the angular way by downloading the js file folder with [Angular approach](https://pdfjs.express/documentation/get-started/angular/exist-project).  
incase if your suggestion is for npm way, then is there any links where in i can go through so i can push same for UAT and production, as my application is already in UAT so, please suggest

---

<div class="post-metadata">

**Author:** ![zserviss](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@zserviss](https://pdfjs.community/u/zserviss)\
**Post date:** [December 20, 2022, 5:21pm UTC](https://pdfjs.community/t/which-is-best-for-production-npm-or-angular-way-in-pdf-js-express-plus/2247/2 "2022-12-20T17:21:29Z")

</div>

Hi @rakshitha_r

Both implementations will work for an Angular project. Using npm will slightly reduce the repo size is the only advantage I can think of.

Best Regards,  
Zach Serviss  
Web Development Support Engineer  
PDFTron Systems, Inc.

---

<div class="post-metadata">

**Author:** ![rakshitha\_r](https://avatars.discourse-cdn.com/v4/letter/r/82dd89/32.png) [@rakshitha\_r](https://pdfjs.community/u/rakshitha_r)\
**Post date:** [December 21, 2022, 1:36am UTC](https://pdfjs.community/t/which-is-best-for-production-npm-or-angular-way-in-pdf-js-express-plus/2247/3 "2022-12-21T01:36:27Z")

</div>

hi zserviss,  
thanks for response, when i am using npm, i need to build that so for production il be having only one folder path, how can the dist folder of pdf.js can be combined for that?

---

<div class="post-metadata">

**Author:** ![zserviss](https://avatars.discourse-cdn.com/v4/letter/z/a9a28c/32.png) [@zserviss](https://pdfjs.community/u/zserviss)\
**Post date:** [December 21, 2022, 3:29pm UTC](https://pdfjs.community/t/which-is-best-for-production-npm-or-angular-way-in-pdf-js-express-plus/2247/4 "2022-12-21T15:29:56Z")

</div>

If you follow the npm installation guide, there is only one folder path for the dist.

Best Regards,  
Zach Serviss  
Web Development Support Engineer  
PDFTron Systems, Inc.

---

<div class="post-metadata">

**Author:** ![rakshitha\_r](https://avatars.discourse-cdn.com/v4/letter/r/82dd89/32.png) [@rakshitha\_r](https://pdfjs.community/u/rakshitha_r)\
**Post date:** [December 22, 2022, 12:51pm UTC](https://pdfjs.community/t/which-is-best-for-production-npm-or-angular-way-in-pdf-js-express-plus/2247/5 "2022-12-22T12:51:32Z")

</div>

yes zserviss,  
i was able to give fix, thanks
