# @evo/user-info

> Service for fetching user data that is currently logged in in the main app.

Latest version **3.0.3** (published 2026-03-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install @evo/user-info
pnpm add @evo/user-info
yarn add @evo/user-info
bun add @evo/user-info
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 3.0.3 |
| Published | 2026-03-24 |
| First published | 2018-01-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | lequan, zemlanin, alexander, seedofjoy, 041616, docccdev, orhideous, tailhook, hunson.abadeer, mark_tven, amostovenko, sadkovoy, himiranov, evo-kazymyrov, stoyanovk |

## Links

- npm: https://www.npmjs.com/package/@evo/user-info
- Repository: https://gitlab.uaprom/evo-frontend/prom
- npm.io page: https://npm.io/package/@evo/user-info

## Recent versions

- 3.0.3 (latest) — 2026-03-24
- 3.0.1 — 2021-11-22
- 2.0.5 — 2021-09-23
- 2.0.3 — 2019-08-19
- 2.0.2 — 2018-03-14
- 2.0.1 — 2018-03-14
- 1.0.2 — 2018-01-25
- 1.0.3 — 2018-01-25
- 1.0.1 — 2018-01-25

## README

# user-info
Service for fetching user data that is currently logged in in the main app.

## User information from the remote - UserData
*UserData* is the data returned from `/remote/auth/info`;

```
'id': <id>,
'full_name': <name>,
'email': <email>
'phone': <phone>,
'is_paid_company': <company>,
'company_id': <company>
```

## usage
```js
import { init, getUserInfo } from '@evo/user-info';

// you should call init on application start
init('http://my.example.com:5000');

const userInfo = await getUserInfo();
```

# API

## init(myHost: string, user: UserData): void
Initializes the service (myHost is required).

## getUserInfo(): Promise\<UserData\>
Fetches remote info

Example:

```js
import { getUserInfo } from "@evo/user-info"

const userInfo = await getUserInfo();
```

---
_Source: https://npm.io/package/@evo/user-info · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
