# @scalecube/utils

> [![Join the chat at https://gitter.im/scalecube-js/Lobby](https://badges.gitter.im/scalecube-js/Lobby.svg)](https://gitter.im/scalecube-js/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Latest version **0.2.11** (published 2021-08-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @scalecube/utils
pnpm add @scalecube/utils
yarn add @scalecube/utils
bun add @scalecube/utils
```

## Health

**Score 30/100 (F)** — status: abandoned.

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

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.11 |
| Published | 2021-08-11 |
| First published | 2019-06-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 56.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Scalecube |
| Maintainers | ronen.nachmias, idanilt, scalecube-ci, skolomiiets, scalecube-js-user-developer, idokatz, viktor.pyshnenko |

## Links

- npm: https://www.npmjs.com/package/@scalecube/utils
- npm.io page: https://npm.io/package/@scalecube/utils

## Dependencies (1)

- [@scalecube/api](https://npm.io/package/@scalecube/api.md) 0.2.11

## Recent versions

- 0.2.11 (latest) — 2021-08-11
- 0.2.11-snapshot.feature-node-matrix.1646099022 (snapshot) — 2022-03-01
- 0.2.11-develop.1628682230 (develop) — 2021-08-11
- 0.2.1 (next) — 2020-06-24
- 0.2.10 — 2021-08-11
- 0.2.10-develop.1628680608 — 2021-08-11
- 0.2.10-develop.1628675503 — 2021-08-11
- 0.2.10-snapshot.feature-z-test.1628671774 — 2021-08-11
- 0.2.10-snapshot.feature-z-test.1628640428 — 2021-08-11
- 0.2.10-develop.1628635932 — 2021-08-10
- 0.2.10-develop.1627581576 — 2021-07-29
- 0.2.10-develop.1627577023 — 2021-07-29
- 0.2.10-develop.1627572615 — 2021-07-29
- 0.2.10-develop.1627571964 — 2021-07-29
- 0.2.10-develop.1627570912 — 2021-07-29
- … 173 more at https://npm.io/package/@scalecube/utils/versions

## README

[![Join the chat at https://gitter.im/scalecube-js/Lobby](https://badges.gitter.im/scalecube-js/Lobby.svg)](https://gitter.im/scalecube-js/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

> **NOTICE** versions 0.0.x are experimental without LTS or the API and behavior might change from patch to patch

# Scalecube utils

reusable utils library 

## address

#### getFullAddress

```gherkin
Given valid address: Address
When  calling getFullAddress(address)
Then  fullAddress will be added to the address object
```

#### validateAddress

```gherkin
Given address: any
And   isOptional: boolean
# isOptional = true
When  calling validateAddress(address, isOptional) 
Then  valid address can be undefined or type Address
# isOptional = false
When  calling validateAddress(address, isOptional) 
Then  valid address must be of type Address
```

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