# @8base/utils

> This library contains utils used by the other 8base service packages.

Latest version **1.6.2** (published 2022-03-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @8base/utils
pnpm add @8base/utils
yarn add @8base/utils
bun add @8base/utils
```

## Health

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

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.6.2 |
| Published | 2022-03-22 |
| First published | 2018-07-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 7 |
| Unpacked size | 293.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 27 |
| Maintainers | 8base-bot, selnapenek, 8basetimmyers, s1owjke, eugene.antonevich, ilazarev |

## Links

- npm: https://www.npmjs.com/package/@8base/utils
- Repository: https://github.com/8base/sdk
- Homepage: https://github.com/8base/sdk/tree/master/packages/utils#readme
- Issues: https://github.com/8base/sdk/issues
- npm.io page: https://npm.io/package/@8base/utils

## Dependencies (7)

- [os](https://npm.io/package/os.md) ^0.1.1
- [ramda](https://npm.io/package/ramda.md) ^0.26.1
- [prettier](https://npm.io/package/prettier.md) ^1.17.0
- [reselect](https://npm.io/package/reselect.md) ^4.0.0
- [graphql-prettier](https://npm.io/package/graphql-prettier.md) ^1.0.5
- [@8base/error-codes](https://npm.io/package/@8base/error-codes.md) ^1.0.17
- [@8base/schema-name-generator](https://npm.io/package/@8base/schema-name-generator.md) ^0.1.5

## Recent versions

- 1.6.2 (latest) — 2022-03-22
- 3.1.0-beta.0 (beta) — 2023-11-24
- 3.0.0-beta.3 — 2023-04-12
- 3.0.0-beta.1 — 2023-04-12
- 3.0.0-beta.0 — 2022-06-22
- 2.7.0-beta.0 — 2022-06-22
- 2.6.6 — 2022-03-18
- 2.6.5 — 2021-10-29
- 2.6.3 — 2021-10-29
- 2.6.2 — 2021-10-29
- 1.6.1 — 2021-10-18
- 2.5.0 — 2021-08-23
- 2.4.0 — 2021-08-17
- 1.5.0 — 2021-08-17
- 2.3.0 — 2021-08-10
- … 220 more at https://npm.io/package/@8base/utils/versions

## README

# 8base Utils

This library contains utils used by the other 8base service packages.

## API

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

#### Table of Contents

-   [formatDataForMutation](#formatdataformutation)
    -   [Parameters](#parameters)

### formatDataForMutation

Formats entity data for create or update mutation based on passed schema.

#### Parameters

-   `type` **MutationType** The type of the mutation.
-   `tableName` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** The name of the table from the 8base API.
-   `data` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** The entity data for format.
-   `schema` **Schema** The schema of the used tables from the 8base API.

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