How to use npm module?

I want to use a npm module I installed with npm install . I would like to use it in only one .js file and use that .js file in only one page. Can that be done and if so how?

I’ve been trying to figure this out for a couple hours and I’m stumped.

For reference, I’m “using” brunch and my node version in 8.

Take a look here. It might shed some light

1 Like

Thanks for the link, but that doesn’t really help me.

Just in case anyone comes across this. I figured out a way to use js libraries, just copy the .min.js library file into priv/static and call it in the html.eex page with a script tag. There are definitely better ways to do this but this should work if you don’t want to fiddle with the js.