Is there a way I can use npm with the direct source code rather than minified/bundled code?

I want to use npm and JavaScript (or TypeScript) 3rd party libraries directly from the source code.

For example, in Python, I can go directly into the source code make changes in them and see it directly reflected in my application. I want the same functionality with JavaScript because this helps me understand what’s going on with my 3rd party dependencies.