# youchain-utils

> Collection of utility functions used in youchain.js.

Latest version **1.0.4-alpha.0** (published 2020-12-18) · LGPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install youchain-utils
pnpm add youchain-utils
yarn add youchain-utils
bun add youchain-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.0.4-alpha.0 |
| Published | 2020-12-18 |
| First published | 2019-03-12 |
| Weekly downloads | 0 |
| License | LGPL-3.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 9 |
| Unpacked size | 9.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | youchain |

## Links

- npm: https://www.npmjs.com/package/youchain-utils
- Repository: https://github.com/youchainhq/youchain.js/tree/1.0/packages/youchain-utils
- npm.io page: https://npm.io/package/youchain-utils

## Dependencies (9)

- [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
- [eth-lib](https://npm.io/package/eth-lib.md) 0.2.8
- [@types/node](https://npm.io/package/@types/node.md) ^10.12.18
- [randombytes](https://npm.io/package/randombytes.md) ^2.1.0
- [@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

## Recent versions

- 1.0.4-alpha.0 (latest) — 2020-12-18
- 1.0.3 — 2020-09-09
- 1.0.2 — 2020-09-03
- 1.0.1 — 2020-05-06
- 1.0.1-alpha.1 — 2020-04-22
- 1.0.1-alpha.0 — 2020-04-21
- 1.0.0 — 2020-04-11
- 1.0.0-alpha.84 — 2020-03-28
- 1.0.0-alpha.83 — 2020-03-25
- 1.0.0-alpha.82 — 2020-03-25
- 1.0.0-alpha.81 — 2020-03-25
- 1.0.0-alpha.80 — 2020-03-25
- 1.0.0-alpha.79 — 2020-03-25
- 1.0.0-alpha.78 — 2020-03-25
- 1.0.0-alpha.77 — 2020-03-25
- … 56 more at https://npm.io/package/youchain-utils/versions

## README

# youchain-utils

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

This contains useful utility functions for Dapp developers.

## Installation

```bash
npm install youchain-utils
```

## Usage

Import all of the utils functions

```js
import * as Utils from 'youchain-utils';

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

Import what you need

```js
import { asciiToHex } from 'youchain-utils';

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

## Types

All the typescript typings are placed in the types folder.

[repo]: https://github.com/youchainhq/youchain.js

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