Can anyone point me to instructions on how to use an npm package in an asp.net core application using Visual Studio 2019? Specifically, I am using the DOMPurify npm package (https://www.npmjs.com/package/dompurify)
I am new to npm and feeling my way. I have npm installed on my machine. I added a package.json to the project, and in there I added this bit of code:
"devDependencies": {
"dompurify": "2.2.6"
}
When I hover over this with my cursor I see the DOMPurifiy intellisense information, and a folder named "npm" was added to my Dependencies node, and in there I see "dompurify (2.2.6)", so something happened, but no files get downloaded. I was expecting something like adding a Nuget package, where the files get downloaded, but that does not occur.
I simply downloaded the javascript file I need from the github site and added that to my project, and it works fine. What is the purpose of the package.json and the "npm" dependencies node? Is there any way to manage these packages in Visual Studio, similar to how Nuget works?