[Free webinar] 7 Pre-requisites of Incident Management for the New Era of Remote Work | 10 AM PST - 18th June, 2020 Save your seat

Start a new topic
Solved

How can i include npm libraries in my app?

I am trying to request an HTTPS link which needs to be authenticated, so i am tried to use Buffer("myapikey").toString(base64) but i coud'nt include buffer package,


I have tried require("buffer"), it doesn't work.

You can add it in manifest.yml with the corresponding versions in the following format to use it in the backend server.js.

dependencies: request: 2.72.0


 Or just look for the frontend version https://cdnjs.com/

Login or Signup to post a comment