# @onaio/utils

> Useful utilities from Ona

Latest version **0.0.1** (published 2020-03-10) · Apache-2.0 license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2020-03-10 |
| First published | 2020-03-10 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 15.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Ona Engineering |
| Maintainers | onaio |

## Links

- npm: https://www.npmjs.com/package/@onaio/utils
- Repository: https://github.com/onaio/js-tools
- Homepage: https://github.com/onaio/js-tools#readme
- Issues: https://github.com/onaio/js-tools/issues
- npm.io page: https://npm.io/package/@onaio/utils

## Recent versions

- 0.0.1 (latest) — 2020-03-10

## README

# Ona Utils

This package is a collection of useful utilities.

## What is included

### Utility Type Definitions

- Dictionary: an interface that can describe any object
- UpdateType: a generic type used to merge one object interface with another
- Result: a generic type that is meant to describe the result of any function, with in-built error handling.

### Utility Functions

- percentage: a small little function that converts a decimal into a percentage e.g. 0.18 into 18%

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