35 lines
1.0 KiB
Markdown
35 lines
1.0 KiB
Markdown
# Utilities
|
|
|
|
[](https://travis-ci.org/polkadot-js/util)
|
|
[](https://coveralls.io/github/polkadot-js/util?branch=master)
|
|
[](https://greenkeeper.io/)
|
|
[](https://david-dm.org/polkadot-js/util)
|
|
[](https://david-dm.org/polkadot-js/util#info=devDependencies)
|
|
|
|
## Introduction
|
|
|
|
|
|
## Usage
|
|
|
|
Installation -
|
|
|
|
```
|
|
npm install --save @polkadot/util
|
|
```
|
|
|
|
Functions can be imported directly from the package, e.g.
|
|
|
|
```js
|
|
import { isHex } from '@polkadot/util';
|
|
```
|
|
|
|
Alternatively the function can be accessed directly,
|
|
|
|
```js
|
|
import isHex from '@polkadot/util/is/hex';
|
|
```
|
|
|
|
## Available Utilities
|
|
|
|
For a list of currently exposed methods, see the [library documentation](docs/README.md).
|