A simple and effective promise-based HTTP & HTTP/2 request library that supports all HTTP methods.
Installation
Using npm:
$ npm install nyro@latest
Other Installations:
$ yarn add nyro@latest
$ pnpm add nyro@latest
$ deno install npm:nyro@latest
Example Basic Usage
import nyro, { ResponseType, Method } from 'nyro';
(async() => {
const { body } = await nyro({
url: 'https://hercai.onrender.com/v3/hercai',
params: {
question: 'Hi How Are You?'
}
method: Method.Get, // Or 'GET'
responseType: ResponseType.Json, // Or 'json'
headers: {
'User-Agent': 'Nyro'
},
bodySchema: {
content: String,
reply: String
}
});
console.log('Your Question; ' + body.content);
console.log('AI Reply; ' + body.reply);
})();
Documentation
Main Request
- <input checked="" disabled="" type="checkbox">
Promise Requests
- <input checked="" disabled="" type="checkbox">
Options
- <input checked="" disabled="" type="checkbox">
Stream Request
- <input checked="" disabled="" type="checkbox">
Queue Request
- <input checked="" disabled="" type="checkbox">
Pagination API
- <input checked="" disabled="" type="checkbox">
Create / Extend Request
- <input checked="" disabled="" type="checkbox">
HTTP/2 Support
- <input checked="" disabled="" type="checkbox">
Response
Timeouts, Retries And Error
- <input checked="" disabled="" type="checkbox">
Timeout
- <input checked="" disabled="" type="checkbox">
Retries
- <input checked="" disabled="" type="checkbox">
Error
Other Options
- <input checked="" disabled="" type="checkbox">
Cache
- <input checked="" disabled="" type="checkbox">
Proxy Support
- <input checked="" disabled="" type="checkbox">
Abort / Cancel Request
- <input checked="" disabled="" type="checkbox">
BodySchema
- <input checked="" disabled="" type="checkbox">
SSL Options
- <input checked="" disabled="" type="checkbox">
Browser Support (Node Only)
Advanced Options
- <input checked="" disabled="" type="checkbox">
Events & Callbacks
- <input checked="" disabled="" type="checkbox">
Plugins & Advanced Callbacks
Special Features
- <input checked="" disabled="" type="checkbox">
Advanced User Agent Generator
- <input checked="" disabled="" type="checkbox">
Get Advanced Alive Proxy
- <input checked="" disabled="" type="checkbox">
Layer7 Attack 🤪
License
Nyro is licensed under the GPL-3.0 License. See the LICENSE file for details.
Support
![]() Free online courses. In-person learning. Certification-aligned pathways in topics like Cybersecurity, Networking, and Python. It’s all here. Are you ready to begin, change, or propel your career? |