# pomelo-sdk

> Pomelo SDK

Latest version **0.1.3** (published 2023-05-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install pomelo-sdk
pnpm add pomelo-sdk
yarn add pomelo-sdk
bun add pomelo-sdk
```

## Health

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

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

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2023-05-02 |
| First published | 2021-10-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 12.5 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Denis Carriere |
| Maintainers | deniscarriere, yaroshkvorets |

## Links

- npm: https://www.npmjs.com/package/pomelo-sdk
- Repository: https://github.com/pomelo-io/pomelo-sdk
- Issues: https://github.com/pomelo-io/pomelo-sdk/issues
- npm.io page: https://npm.io/package/pomelo-sdk

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^0.23.0

## Recent versions

- 0.1.3 (latest) — 2023-05-02
- 0.1.2 — 2022-10-05
- 0.1.1 — 2022-08-13
- 0.1.0 — 2022-08-13
- 0.0.6 — 2022-07-11
- 0.0.5 — 2022-01-19
- 0.0.4 — 2021-11-15
- 0.0.3 — 2021-10-26
- 0.0.2 — 2021-10-26
- 0.0.1 — 2021-10-26

## README

# Pomelo SDK

[![Build Status](https://github.com/pomelo-io/pomelo-sdk/actions/workflows/test.yml/badge.svg)](https://github.com/pomelo-io/pomelo-sdk/actions/workflows/test.yml)
[![npm version](https://badge.fury.io/js/pomelo-sdk.svg)](https://badge.fury.io/js/pomelo-sdk)
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/pomelo-io/pomelo-sdk/master/LICENSE)

> Pomelo - Javascript Library

## Install

Using Yarn:

```bash
$ yarn add pomelo-sdk
```

or using NPM:

```bash
$ npm install --save pomelo-sdk
```

## Quick Start

```js
import * as pomelo from "pomelo-sdk"

// Round Computations
const match_value = 100000;
const sum_square = 1578.29538956198575761;
const divisor = pomelo.calculate_divisor(match_value, sum_square);
// => 63.359495732767975

// Grant Computations
const square = 706.30066043198416992;
const grant_estimate = pomelo.calculate_grant_estimated_match(square, divisor);
// => 44750.85368069151

// User Computations
const value = 180
const sum_sqrt = 26.57631766125593487
const funding_estimate = pomelo.calculate_funding_estimated_match(value, sum_sqrt, grant_estimate);
// => 22591.380526818404;
```

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