New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nyro

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nyro

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

  • 2.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.7K
decreased by-39.85%
Maintainers
0
Weekly downloads
 
Created
Source

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?

Keywords

FAQs

Package last updated on 14 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc