Socket
Book a DemoInstallSign in
Socket

@neoxr/api

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neoxr/api

Official Fetcher for Neoxr API

1.5.3
latest
npmnpm
Version published
Maintainers
1
Created
Source

Official Fetcher for Neoxr API

Module to fetch api data very easily with efficient and readable code

How to use ??

Api.neoxr([endpoint], [parameter])

Example

Here I give an example of fetching the Google Gemini Chat API with gemini-chat as endpoint and q as parameter.

const NeoxrApi = require('@neoxr/api')

// recommend making it as global variable
const Api = new NeoxrApi('https://api.neoxr.my.id/api', 'yntkts')

Api.neoxr('/gemini-chat', {
   q: 'Hai'
}).then(console.log)

// async/await version
const json = await Api.neoxr('/gemini-chat', {
   q: 'Hai'
})
console.log(json)

Result :

FAQs

Package last updated on 18 Mar 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.