Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Is there a module for creating HTTP Requests in node.js? I am hoping to implement it like this:
var some-module = require('some-module')
There is a request module present in NPM to create HTTP requests in Node.js.
npm request module
Hope this helps.
Add a comment
Yes, you can use the "request" package. Simply include it in your project like this:
var request = require('request')
Remember to do npm install request in your terminal for your project's directory.
npm install request
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.