xfarr-api

3.0.1 • Public • Published

xfarr-api

Full API Implementation inside NodeJS Module

More info at https://api.xfarr.com/ Get ApiKEY here https://api.xfarr.com/auth/signin

And you can upgrade your apikey to premium or VIP, you can see more details at https://api.xfarr.com/pricing

Installation

npm:

$ npm install xfarr-api

yarn:

$ yarn add xfarr-api

Simple to Use

CommonJs (CJS) syntax

const APIWrapper = require('xfarr-api');

ECMAScript Modules (ESM) syntax

import APIWrapper from 'xfarr-api';

Example

const xfar = new APIWrapper('ApiKEY');

// How to call the API
xfar.[feature].[name](parameter)
  .then(response => {
    console.log(response);
  })
  .catch(error => {
    console.error(error.message);
  });

// Example of an API call
xfar.stalking.npmjs("xfarr-api")
  .then(response => {
    console.log(response);
  })
  .catch(error => {
    console.error(error.message);
  });

Thanks To

Lui
Dika Ardianta Lui
Pedo Jomok

Feedback

If you have any feedback, please reach out to us at xfar.dev@gmail.com

Package Sidebar

Install

npm i xfarr-api

Weekly Downloads

3,715

Version

3.0.1

License

MIT

Unpacked Size

182 kB

Total Files

4

Last publish

Collaborators

  • xfar