Using npm:
$ npm install nyro@latest
Other Installations:
$ yarn add nyro@latest
$ pnpm add nyro@latest
$ deno install npm:nyro@latest
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);
})();
-
Promise Requests
-
Options
-
Stream Request
-
Queue Request
-
Pagination API
-
Create / Extend Request
-
HTTP/2 Support
-
Response
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. It’s all here. Are you ready to begin, change, or propel your career? |