I have some javascript utility functions that I would like to be able put in a central folder and reference from different projects.

It seems I cant import functions from outside the src file in of my project.

Do I have to publish an NPM package?
Do I have to duplicate the code in each project?

Am using javascript/node + vscode.

thanks