Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

nyro

Bes-js15.9kLGPL-3.0-or-later2.0.4TypeScript support: included

A simple and effective promise-based HTTP & HTTP/2 request library that supports all HTTP methods.

http, https, request, response, proxy, fastgate, agent, http-proxy-agent, https-proxy-agent, get, post, put, delete, head, options, trace, connect, patch, promise, got, url, uri, simple, curl, wget, request-promise, request-promise-native, net, network, gzip, node-fetch, fetch, ky, requests, human-friendly, axios, superagent, hercai, proxy-agent, http-proxy, https-proxy, http-proxy-agent, https-proxy-agent, socks-proxy-agent, http2, http2-wrapper, http2-agent, http2-proxy-agent, user-agent, cookie, cookies, user-agent-generator, layer7

readme


A simple and effective promise-based HTTP & HTTP/2 request library that supports all HTTP methods.

Discord

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

Timeouts, Retries And Error

  • <input checked="" disabled="" type="checkbox"> Timeout
  • <input checked="" disabled="" type="checkbox"> Retries
  • <input checked="" disabled="" type="checkbox"> Error

Other Options

Advanced Options

Special Features


License

Nyro is licensed under the GPL-3.0 License. See the LICENSE file for details.

Support

Discord Banner



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?