JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2279
  • Score
    100M100P100Q113496F
  • License LGPL-3.0-or-later

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

Package Exports

  • nyro
  • nyro/dist/index.js
  • nyro/dist/index.mjs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nyro) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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

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?