Socket
Book a DemoInstallSign in
Socket

@hitobit/client

Package Overview
Dependencies
Maintainers
2
Versions
348
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hitobit/client

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

1.4.91
latest
npmnpm
Version published
Weekly downloads
6
-96.55%
Maintainers
2
Weekly downloads
 
Created
Source

Getting Started with Create React App

This project was bootstrapped with Create React App.

Get start

yarn add hitobit-client hitobit-services

Add provider to Top of your app

// add your domain name to top level of app
// before calling any api this should be set
URLManager.setDomainName("hitobit")

function App(){
  return (
    <HitobitClientProvider
      language="fa"
      initializer={async () => {
        await setStoredTheme();
        await setStoredBalance();
      }}
    >
      <Routes>
    </HitobitClientProvider>
  );
}

Webpack

Add This modules to include

"node_modules/hitobit-client",
"node_modules/hitobit-constants",
"node_modules/hitobit-hooks",
"node_modules/hitobit-modules",
"node_modules/hitobit-services",
"node_modules/hitobit-store",
"node_modules/hitobit-utils"

Global variables

webpack

config.plugins.push(
  new webpack.DefinePlugin({
    __CLIENT_SECRET__: `"Your client secret"`,
    __CLIENT_ID__: `"Your client id"`,
    __DEV__: true,
    __STAGE__: false,
    __STAGE_TEST__: false,
    __TESTNET__: false,
    __PRODUCTION__: false,
    __MOCK__: false,
    __PLATFORM__: `"web"` | `"pwa"` | `"native"`,
  }),
);

jest

config.globals = {
  ...config.globals,
  __CLIENT_SECRET__: `"Your client secret"`,
  __CLIENT_ID__: `"Your client id"`,
  __DEV__: true,
  __STAGE__: false,
  __STAGE_TEST__: false,
  __TESTNET__: false,
  __PRODUCTION__: false,
  __MOCK__: false,
  __PLATFORM__: `"web"` | `"pwa"` | `"native"`,
};

Services

import { useGetCapitalV1PublicCurrencyAll } from "hitobit-services";

const Comp = () => {
  const { data, isLoading } = useGetCapitalV1PublicCurrencyAll();
};

FAQs

Package last updated on 19 Aug 2025

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.