A simple and effective promise-based HTTP & HTTP/2 request library that supports all HTTP methods.
npm install nyro
Using npm:
``shell`
$ npm install nyro@latest
Other Installations:
`bash`
$ yarn add nyro@latest
`bash`
$ pnpm add nyro@latest
`bash`
$ deno install npm:nyro@latest
js
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
Promise Requests
- [x] Options
- [x] Stream Request
- [x] Queue Request
- [x] Pagination API
- [x] Create / Extend Request
- [x] HTTP/2 Support
- [x] Response#### Timeouts, Retries And Error
Timeout
- [x] Retries
- [x] Error#### Other Options
Cache
- [x] Proxy Support
- [x] Abort / Cancel Request
- [x] BodySchema
- [x] SSL Options
- [x] Browser Support (Node Only)#### Advanced Options
Events & Callbacks
- [x] Plugins & Advanced Callbacks#### Special Features
Advanced User Agent Generator
- [x] Get Advanced Alive Proxy
- [x] Layer7 Attack 🤪`Nyro is licensed under the GPL-3.0 License. See the LICENSE file for details.

Free online courses. In-person learning. Certification-aligned pathways in topics like Cybersecurity, Networking, and Python. |