npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

hivpn-representatives

v0.0.7

Published

Hi vpn representatives package

Readme

alt HiVPN Representatives Package NPM

سایت نمایندگان

سایت اصلی

درباره بسته نمایندگان HiVPN

به جای استفاده مستقیم از api های سایت نمایندگان می توانید از این پکیچ با قابلیت های بیشتر استفاده کنید.

قابلیت های بسته نمایندگان HiVPN

1- گرفتن موجودی حساب.

2- گرفتن تمامی محصولات قابل خرید در پنل نمایندگان.

3- گرفتن محصولات بر حسب id مشخص شده (فیلتر کردن).

4- گرفتن محصولات بر حسب قیمت مشخص شده (فیلتر کردن − به عنوان مثال از 0 تومان تا 100 تومان).

5- گرفتن اطلاعات یک اکانت مشخص شده با استفاده از username که در پنل نمایندگان ثبت شده است.

6- گرفتن اطلاعات مجموعه ای از کاربران با استفاده از نام کاربری که در پنل نمایندگان ثبت شده است.

7- خرید اشتراک برای مشتریان

8- تمدید اشتراک برای مشتریان

9- حذف یک حساب مشتری

10- ویرایش حساب یک مشتری

install And Usage

$ npm install hivpn-representatives

or

$ yarn add hivpn-representatives

import package
//import the package es6 and typescript
import HiVPN from "hivpn-representatives";

//import the package es5
const HiVPN = require("hivpn-representatives");

Then create an instance:

/**
    showStatus?: boolean|undefined,
    if showStatus is true then return {{
        status: "success",
        balance: {
           ...
        }
    }}
    else return {
        balance: {
           ...
        }
    }
 */

/**
    ctArray?: boolean|undefined,
    if ctArray is true then return {
         "3": {
        "id": "3",
        ...
         }}
         else return [
        {
            "id": "3",
            ...
            }
         ]
 */

//yor api key token example: qf2wec9ec5da418abee7ae22

const hivpn = new HiVPN("your-api-key");

// get balance:
const getBalance = await hivpn.getBalance(); //showStatus?: boolean

//get products:
const getProducts = await hivpn.getProducts(); //ctArray?: boolean

//get product by id:
const getProductById = await hivpn.getProduct([1, 3, 6] /*or ["1","3","6"]*/); //ctArray?: boolean

//get product by price:
const getProductByPrice = await hivpn.getProductByPrice(0, 100); //ctArray?: boolean

// get a account:
const getAccount = await hivpn.getAccount("username");

// get a list of accounts:
const getAccounts = await hivpn.getAccounts([
  "username1",
  "username2",
  "username3",
]); // showErrors?: boolean,
//  ctArray?: boolean

// buy a account:

/** params:
    idProduct: number | 1 | 2 | 3 | 4 | 6,
    discount?: string,
    email?: string,
    mobile?: string,
    comment?: string,
    username?: string,
    password?: string
 */
const buyAccount = await hivpn.buyAccount(
  2,
  "discount",
  "[email protected]",
  "09121234567",
  "comment",
  "username",
  "password"
);

// account renewal:

/** params:
    idProduct: number | 1 | 2 | 3 | 4 | 6,
    discount?: string,
    username?: string
 */

const renewalAccount = await hivpn.accountRenewal(3, "discount", "username");

//edit account:

/** params:
    username: string,
    password?: string,
    status?: boolean
 */
const editAccount = await hivpn.editAccount("username", "password", true);

//delete account
const deleteAccount = await hivpn.deleteAccount("username");

دوستان عزیز شما میتوانید نظرات خود را در مورد بسته نمایندگان HiVPN برای ما بفرستید.

email: [email protected]

نکته: این بسته زیر نظر شرکت HiVPN ساخته و انتشار داده نشده است و صرفا فقط برای راحتی کار دوستان برنامه نویس بنده منتشر کرده ام.

امیدوارم که این بسته مفید واقع باشد.🌹