https://github.com/bes-js/nyro
A simple and effective promise-based HTTP request library that supports all HTTP methods.
https://github.com/bes-js/nyro
anonymity axios delete fetch get got http http-client http2 https node patch post proxy request
Last synced: 28 days ago
JSON representation
A simple and effective promise-based HTTP request library that supports all HTTP methods.
- Host: GitHub
- URL: https://github.com/bes-js/nyro
- Owner: Bes-js
- License: gpl-3.0
- Created: 2024-10-21T19:49:42.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-11-14T15:26:36.000Z (5 months ago)
- Last Synced: 2025-03-19T20:43:37.105Z (about 1 month ago)
- Topics: anonymity, axios, delete, fetch, get, got, http, http-client, http2, https, node, patch, post, proxy, request
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/nyro
- Size: 1.52 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
![]()
A simple and effective promise-based HTTP & HTTP/2 request library that supports all HTTP methods.
## Installation
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
```## Example Basic Usage
```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
- [x] [`Promise Requests`](documentation/promise.md)
- [x] [`Options`](documentation/options.md)
- [x] [`Stream Request`](documentation/stream.md)
- [x] [`Queue Request`](documentation/queue.md)
- [x] [`Pagination API`](documentation/pagination.md)
- [x] [`Create / Extend Request`](documentation/create-extend.md)
- [x] [`HTTP/2 Support`](documentation/http2.md)
- [x] [`Response`](documentation/response.md)#### Timeouts, Retries And Error
- [x] [`Timeout`](documentation/timeout.md)
- [x] [`Retries`](documentation/retry.md)
- [x] [`Error`](documentation/error.md)#### Other Options
- [x] [`Cache`](documentation/cache.md)
- [x] [`Proxy Support`](documentation/proxy.md)
- [x] [`Abort / Cancel Request`](documentation/abort.md)
- [x] [`BodySchema`](documentation/bodyschema.md)
- [x] [`SSL Options`](documentation/ssl.md)
- [x] [`Browser Support (Node Only)`](documentation/browser.md)#### Advanced Options
- [x] [`Events & Callbacks`](documentation/events.md)
- [x] [`Plugins & Advanced Callbacks`](documentation/plugins.md)#### Special Features
- [x] [`Advanced User Agent Generator`](documentation/user-agent.md)
- [x] [`Get Advanced Alive Proxy`](documentation/get-proxy.md)
- [x] [`Layer7 Attack 🤪`](documentation/layer7.md)
## License
Nyro is licensed under the **GPL-3.0** License. See the [LICENSE](./LICENSE.md) file for details.
## Support
[](https://discord.gg/luppux)