How to install Node Modules in Custom Apps and use that inside test_doctype.js file?

Hello Guys,

I want to install pdf-flatten library and use it in my doctype’s js file. How to achieve this?

Thanks in Advance.