Simar
Simar

Reputation: 9

can we use external node modules with express js?

Hey i had asked this question before but was not able to find the correct answer. So please help me.

My Question is :- Can we use external libraries of node js with express js

As I am beginner and learning express js and node js.

let's imagine I am creating a website using express js and I want to add some functionality in it. So I searched about that functionality and I found a npm package Ok. So now I have question that I am creating the website using node js and express js so can I install the package and use it in my express js website. So in the end my question is can I use external node modules in my express js website?

Upvotes: 0

Views: 285

Answers (1)

Tareq Alsayed
Tareq Alsayed

Reputation: 64

Yeah sure you can use external packages in your express js application, just do "npm i <package_name>" and then require it, and use it.

Upvotes: 2

Related Questions