Adding a library to my project,

I am doing an API call and I need to add a javascript library. It says
npm install jsonwebtoken
Please help.

npm stands for node package manager. Node is a way of managing libraries for JavaScript projects.

Since Node isn’t supported on iOS or Android, it’s not used heavily with AppStudio. However, it is possible to use it - at least those modules which are in JavaScript.

We have a bit of documentation here. You’ll need to learn about how to install and use Node yourself beyond that.

If it’s just a single .js library you need, you can drag and drop it into the Project Explorer and it will be included in your project.

You might try adding this line to your headers:

<script src="https://cdn.jsdelivr.net/npm/jsonwebtoken@9.0.2/index.min.js"></script>

It says it is a web a repository for the same library.

I didn’t try it, so I make no promises.

Thank you!