# universal-unit-tool

> A universal tool API.

Latest version **1.0.0** (published 2020-04-10) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install universal-unit-tool
pnpm add universal-unit-tool
yarn add universal-unit-tool
bun add universal-unit-tool
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-04-10 |
| First published | 2020-04-10 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 271 |
| Maintainers | rax-publisher |
| Keywords | universal |

## Links

- npm: https://www.npmjs.com/package/universal-unit-tool
- Repository: https://github.com/raxjs/universal-api
- Homepage: https://github.com/raxjs/universal-api#readme
- Issues: https://github.com/raxjs/universal-api/issues
- npm.io page: https://npm.io/package/universal-unit-tool

## Dependencies (1)

- [universal-device](https://npm.io/package/universal-device.md) ^2.1.1

## Recent versions

- 1.0.0 (latest) — 2020-04-10
- 2.0.0-beta (beta) — 2021-01-12

## README

# universal-unit-tool [![npm](https://img.shields.io/npm/v/universal-unit-tool.svg)](https://www.npmjs.com/package/universal-unit-tool)

Unit tool

## Supported

<img alt="browser" src="https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-200-200.svg" width="25px" height="25px" /> <img alt="weex" src="https://gw.alicdn.com/tfs/TB1jM0ebMaH3KVjSZFjXXcFWpXa-200-200.svg" width="25px" height="25px" /> <img alt="miniApp" src="https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg" width="25px" height="25px" /> <img alt="wechatMiniprogram" src="https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg" width="25px" height="25px"> <img alt="bytedanceMicroApp" src="https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg" width="25px" height="25px"> <img alt="quickApp" src="https://gw.alicdn.com/tfs/TB1MP7EwQT2gK0jSZPcXXcKkpXa-200-200.svg" width="25px" height="25px">

## Install

```bash
$ npm install universal-unit-tool --save
```
## Usage

```js
import { px2rpx, rpx2px } from 'universal-unit-tool';
```

## APIS
### `px2rpx(val)`
px to rpx method

### `rpx2px(val)`
rpx to px method

#### Arguments
| Property | Type     | Describes | Default | Supports |
| -------- | -------- | --------- | :-----: | :------: |
| val      | `number` | px value  |    -    |          |

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