# conflux-web-utils

> Collection of utility functions used in conflux-web.js.

Latest version **1.36.7-alpha.0** (published 2020-04-01) · LGPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install conflux-web-utils
pnpm add conflux-web-utils
yarn add conflux-web-utils
bun add conflux-web-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.36.7-alpha.0 |
| Published | 2020-04-01 |
| First published | 2019-04-08 |
| Weekly downloads | 0 |
| License | LGPL-3.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 10 |
| Unpacked size | 74 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 7 |
| Maintainers | geekberry, liuis, ypliu |

## Links

- npm: https://www.npmjs.com/package/conflux-web-utils
- Repository: https://github.com/Conflux-Chain/ConfluxWeb/tree/master/packages/conflux-web-utils
- npm.io page: https://npm.io/package/conflux-web-utils

## Dependencies (10)

- [utf8](https://npm.io/package/utf8.md) 2.1.1
- [bn.js](https://npm.io/package/bn.js.md) 4.11.8
- [lodash](https://npm.io/package/lodash.md) ^4.17.11
- [cfx-lib](https://npm.io/package/cfx-lib.md) 0.0.4
- [randomhex](https://npm.io/package/randomhex.md) 0.1.5
- [@types/node](https://npm.io/package/@types/node.md) ^10.12.18
- [@types/bn.js](https://npm.io/package/@types/bn.js.md) ^4.11.4
- [number-to-bn](https://npm.io/package/number-to-bn.md) 1.7.0
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.3.1
- [confluxjs-unit](https://npm.io/package/confluxjs-unit.md) *

## Recent versions

- 1.36.7-alpha.0 (latest) — 2020-04-01
- 1.36.6-alpha.0 — 2020-04-01
- 1.36.5-alpha.0 — 2020-04-01
- 1.36.4-alpha.0 — 2020-04-01
- 1.36.3-alpha.0 — 2020-04-01
- 1.36.2-alpha.0 — 2020-04-01
- 1.36.1-alpha.0 — 2020-04-01
- 1.36.0-alpha.0 — 2020-03-31
- 1.35.1-alpha.0 — 2020-03-06
- 1.35.0 — 2020-01-07
- 0.3.0-alpha.2 — 2019-12-20
- 0.3.0-alpha.1 — 2019-12-20
- 0.3.0-alpha.0 — 2019-12-20
- 0.2.0-alpha.8 — 2019-12-10
- 0.2.0-alpha.6 — 2019-11-29
- … 35 more at https://npm.io/package/conflux-web-utils/versions

## README

# conflux-web-utils

This is a sub package of [ConfluxWeb.js][repo]

This contains useful utility functions for Dapp developers.   

## Installation

```bash
npm install conflux-web-utils
```

## Usage

Import all of the utils functions

```js
import * as Utils from 'conflux-web-utils';

console.log(Utils);
> {
    sha3: Function,
    soliditySha3: Function,
    isAddress: Function,
    ...
}
```

Import what you need

```js
import { asciiToHex } from 'conflux-web-utils';

console.log(asciiToHex('I have 100!'));
> "0x49206861766520313030e282ac"
```

## Types 

All the typescript typings are placed in the types folder.

[repo]: https://github.com/Conflux-Chain/ConfluxWeb

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