0

I use npm packages on node and it works well. But I am building website and I want to use those packages on it. How it works, should i write backend to be able to use npm installed packages on website? For example I got package for summing 2 numbers, I want to input my numbers on website through input fields and than use my package to calculate it and than result will display on website.

I saw some "hacks" how to use npm installed packages on website but I want to know right way to use it

Maestro
  • 11
  • 2
  • Why do you want to use npm packages instead of ES6 modules. Browsers natively support ES6 modules for some years. – jabaa Dec 14 '22 at 19:53

0 Answers0